Man charged with intending to sell drugs near school