A man accidentally shot himself in the groin as he was robbing a convenience store, police said.

A clerk told police a man carrying a semiautomatic handgun entered the Village Pantry Tuesday morning demanding cash and a pack of cigarettes. The clerk put the cash in a bag and as she turned to get the cigarettes, she heard the gun discharge.

Surveillance video shows the man shooting himself as he placed the gun in the waistband of his pants, police said. The clerk wasn't injured.

A short time later, police found 25-year-old Derrick Kosch at a home with a gunshot wound to his right testicle and lower left leg. He was expected to have surgery at a hospital.

Police plan to charge him with armed robbery.