A man from Independence Township, Michigan, accidentally shot himself to death on Monday while teaching his girlfriend about gun safety, the Oakland Press reports.

The 36-year-old man, whose name has not been released, was showing his girlfriend how his three handguns are safe when they aren’t loaded, according to the Detroit Free Press. He was attempting to demonstrate the safety of the handguns by holding them to his head and pulling the trigger.

The third gun fired, and the man was struck in the head. He was pronounced dead at the scene.

Three children ages 7, 10, and 12 were in the home, but did not witness the shooting, according to reports. The man's girlfriend told authorities he had been drinking most of the day before the incident took place.