A man who was reportedly trying to kill a cockroach inside his home by hitting a shoe ended up shooting himself in the foot Tuesday.

According to WDIV, the 50-year-old man threw his shoe at the cockroach, but forgot his gun was in his shoe.

The gun reportedly fell out of the man’s shoe and discharged.

The man was hit in the foot.

His condition is unknown at this time.