According to reports, Alton Police Officer Aaron Galiher was assisting Oregon County Chief Deputy Eric King and Deputy Eddie Johnson at 1 p.m. with Russel Spence, 19, a suspect in the 1 a.m. burglary.
An ambulance was called to assess Spence.
Galiher reported that, when a smoking pipe containing a blue pill, identified as Hydrocodone, was discovered in Spence's pocket, he arrested. Spence, who later admitted to breaking into the pharmacy.
Spence was charged Sept. 13 in Oregon County Circuit Court with felony burglary - stealing and possession of a controlled substance.
His bond was set at $40,000.
His accomplice, Scott Allen Ford, 18, of Alton was charged with felony stealing with his bond set at $25,000.
According to reports, the pair parked a borrowed Ford Windstar on Old Cane Bluff Road and Spence walked through an old saw mill to Myers Pharmacy, next to Harp's grocery store on Highway 160.
While Ford waited in the van, Spence allegedly smashed a window and entered the store, taking more than $500 worth of Xanax and Hydrocodone.
Spence carried the stolen pills in a duffel bag back to the waiting van, and both men fled the scene, the report states.
Authorities later recovered a grocery sack containing a large amount of pills at the junction of Highway 160 and Route M near Alton.
Both men are set to appear in court Sept. 21.