A Longmont man has been arrested on suspicion of attempted murder after police say a gun went off while he was threatening a woman with it.

Jason Matthew Balzer, 30, was arrested on suspicion of attempted second-degree murder, felony menacing, second-degree assault, third-degree assault, tampering with physical evidence, criminal mischief, obstruction of telephone use, aiming a firearm at a person, criminal tampering and domestic violence.

According to an arrest affidavit, a woman who knew Balzer called police at 8:11 p.m Thursday to the area of Red Mountain and Deerwood drives.

The woman said she was sleeping in her bedroom when Balzer came in and wanted to have sex. The woman said she was tired, and Balzer became angry and took her phone.

She said Balzer then grabbed her arms and squeezed then and then hit her in the face and slammed her head into the bed’s headboard five times, according to the affidavit.

She told police Balzer then grabbed a revolver out of a desk drawer in the room and pointed it at her head saying, “I will kill you.” The woman was able to push the gun to the side, at which point it went off next to her head. She was able to get the gun away from Balzer and threw it under the bed.

The woman said that while Balzer tried to begin covering up the bullet hole in the wall, she fled to a neighbor’s house.

When police responded to the apartment, they found a fresh drywall patch in the ceiling and bullet damage to the kitchen floor, kitchen ceiling, bedroom floor and mattress. An officer also found the revolver under the bed.

The woman later told police Balzer also strangled her about two weeks ago.

Balzer was pulled over by police in the area of Golden Bear and Deerwood drives at 12:50 a.m. this morning.

He was booked into custody at the Boulder County Jail and had bond set at $100,000. He is set for a formal filing of charges Tuesday.

Balzer has no prior criminal history other than a traffic violation in Broomfield, according to court records.