A 24-year-old Phoenix man could be prosecuted for endangerment after police say he dropped his gun and fired a shot in the bathroom of a Mesa Walmart on Sunday, Mesa police said.

Andrew Seals entered a bathroom stall about 1 p.m., at a Walmart at McKellips and Greenfield roads, and began to sit down when his Ruger .357-caliber Western-style revolver fell out of its holster and fired a round, Mesa police Sgt. Ed Wessing said.

The bullet went through the stall door, hit a wall, ricocheted into a light on the ceiling, then back onto the floor toward a man standing at a urinal, Wessing said. The bullet struck the floor about 5 feet from the other man, he said.

Police did not arrest Seals, but they will ask prosecutors to charge him with one count of endangerment, Wessing said.