A Chandler man is accused of defecating on the floor of a Walmart store Tuesday after trying to steal a beer bottle, Chandler police said.

Tomas Arenas, 56, was at Walmart near Pecos Road and Arizona Avenue in Chandler at about 5 p.m. when he grabbed a beer bottle and walked out of the store without paying, police said.

A loss-prevention officer stopped Arenas and brought him back inside. Arenas began yelling at the officer before pulling down his pants and defecating on the floor in front of many customers, police said.

Arenas was arrested on suspicion of defecating in public, indecent exposure, disorderly conduct, loitering and shoplifting, according to the court document.