A man accidentally shot himself in the groin area while inside a Buckeye Walmart on Tuesday, police said.

The man was in a Walmart store near Watson and Yuma roads around 6:30 p.m., when the semiautomatic handgun began to slip as he carried it unholstered in the waistband of his sweatpants, Buckeye police said.

The man told police that when he tried to reposition his loaded gun and keep it from falling, he shot himself in the groin area.

Officers arrived and found the man in the meat department with the gunshot wound, police said.

He was taken to the hospital with survivable injuries, police said. No one else was hurt during the incident.

Police said all indications are the shooting was accidental, but police did file a report for unlawful discharge of a firearm.