Phoenix police tell the Arizona Republic that a man jumped the pharmacy counter, pointed the gun at people and demanded oxycodone from the pharmacist. An armed customer shot and wounded him.
Sgt Jonathan Howard said officers found about a dozen workers and customers hiding in the Walgreens from the suspect who was still inside.
After officers cleared the store, a police dog pulled the suspect away from his gun.
Police administered CPR to the man, but he died at the scene.