The former Mercer County pharmacist was accused of illegally filling orders for millions of pills, authorities said.