Matthew Carter Wells was arrested on aggravated assault and other charges.

A Gainesville man accused of putting a gun in his former girlfriend’s mouth while threatening to kill her was arrested Thursday morning after a standoff with the Alachua County Sheriff’s Office.

Matthew Carter Wells, 36, of an apartment at 2701 NW 23rd Blvd., was charged with violating a domestic violence injunction, violating of an injunction with a firearm and aggravated assault.

The incident began Wednesday night when Wells went to the woman’s apartment. She let him in, they talked for a while and then she went to sleep.

At some point, the woman told deputies, she woke up to Wells threatening to kill her and then himself. The arrest report states he put a 9mm handgun in her mouth but she forced him away by kicking at him. They continued to fight.

The woman banged on the wall for help and, after the fighting stopped, texted her supervisor at work. Co-workers called law enforcement.

Wells was still in the apartment when deputies arrived about 9 a.m. The SWAT team, hostage negotiators and other specialized units were called. Wells came out of the apartment about 10:34 a.m. and was arrested.