MEMPHIS, Tenn. (AP) - A sheriff's deputy in Tennessee has been charged with illegally buying opioid pills from an undercover detective.

Memphis police said Shelby County Sheriff's Deputy Jeffery Crossley bought five oxycodone pills for $130 at a Cracker Barrel in Memphis on Thursday.

A police affidavit says the 27-year-old Crossley was arrested after he left the business. Police said they found an amphetamine pill and two loaded guns inside his vehicle.

Police said Crossley had told the detective he was expecting a large shipment of other pills on Friday. The affidavit said Crossley told the detective he knew of other people who would be interested in buying oxycodone.

Crossley has been charged with possession of a controlled substance with intent to sell. Online court records do not show whether he has a lawyer who could comment on the case.

Copyright 2019 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.