Brooklyn pharmacist bought black-market prescription drugs