A special assistant to President Barack Obama has resigned her White House post after she was indicted for allegedly threatening her boyfriend, a U.S. Capitol policeman, with the officer's own handgun.

Barvetta Singletary, who had served as a House legislative affairs liaison, left the Executive Mansion effective Aug. 28, three weeks after she was placed on unpaid leave and denied access to the White House complex following the incident.

The Prince George's County State's Attorney's Office accuses Singletary of domestic violence and of firing the gun at her boyfriend on Aug. 7, Mediaite detailed. She has been charged with first and second degree assault, reckless endangerment and use of a handgun in the commission of a crime of violence. She apparently confronted the officer at her Upper Marlboro after he had refused to show her his cell phone, NBC Washington noted.

According to prosecutors, Singletary took the policeman's two cellphones and .40-caliber Glock 23 service weapon from a bag in his car and took them inside her house. When the man refused to give her his passcodes, she threatened to use the gun, they said "You taught me how to use this. Don't think I won't use it," she replied, according to the arrest warrant.

Singletary subsequently pointed the gun in the officer's direction and fired one round into the sofa where he was sitting, police said. The man was able to leave and call 911, and the White House staffer was taken into custody.

The 37-year-old woman had worked as a deputy chief of staff and policy director to South Carolina Rep. James Clyburn, the assistant Democratic House leader, before taking the appointment at the Executive Mansion in 2014, The Hill detailed.

Singletary has been released from jail on $75,000 bond and has a court date later this month, USA Today noted. According to the administration's official disclosures, her salary at the White House had been $126,250 last year.