A longtime Hillsborough County detention deputy is accused of pointing an unloaded gun at his girlfriend and pulling the trigger.

Ansel Price Mashburn, 48, resigned Thursday and was arrested Friday following an alleged domestic violence incident at a home in the Old Carrollwood area.

According to the sheriff’s office, the couple was arguing when Mashburn pointed an unloaded gun at his girlfriend and pulled the trigger. The woman later said she was in fear for her life.

He was arrested and charged with one count of aggravated assault with a deadly weapon.

Mashburn had been with the sheriff’s office for nearly 20 years and had no history of issues with internal affairs, the agency said.