WASHINGTON — A former FBI agent accused of driving to the gate of the CIA in Langley, Virginia, and issuing…

WASHINGTON — A former FBI agent accused of driving to the gate of the CIA in Langley, Virginia, and issuing a number of violent threats, has been ordered to undergo a psychological evaluation.

Tunisia Davis — an Alexandria woman who was a FBI agent from 2004 to 2010, according to court records and friends — is accused of traveling from the National Security Agency to the Central Intelligence Agency last week and threatening to kill federal police.

Davis was scheduled to appear in court Tuesday afternoon, but did not attend her hearing, reports NBC Washington.

The judge says Davis was acting inappropriately and was uncooperative. The judge added that force would have been needed to get her from U.S. Marshall’s custody in Alexandria into the court room.

After some arguments from attorneys, the judge ordered Davis undergo a psychological evaluation, which will likely happen in the next day or two, NBC Washington reports. She is being charged with assaulting a police officer.

Davis is accused of driving to the Northern Virginia campus of the CIA on April 30 and driving past an officer. Another officer had to stand in her path to stop her. While she was being handcuffed by officers, she reached out with a free arm for the officer’s gun but was thwarted, according to court documents, which were obtained and reported by NBC Washington on Monday.

Davis allegedly told the officers that if she had gotten the gun, she would have killed everyone in sight and bombed the CIA. She has denied reaching for the gun.

Davis’ Facebook page, MahoganyChange, features a number of selfie videos, including one she made just minutes before driving up to the CIA campus.

The CIA was warned she was coming — she had shown up hours before at NSA in Maryland. In that instance, she allegedly drove up to the gate and told officers there that she “wanted to know what they would do if she showed up.”

Davis’ defense attorney would not comment, nor would the FBI or CIA talk to NBC Washington for comment.

In her numerous Facebook videos, Davis references her time at the FBI, which she repeatedly criticizes. Also, she takes aim at the federal government, the treatment of blacks by law enforcement and other issues.

Derek Delgadillo, who told NBC Washington he is a friend and Davis’ former roommate, suggested she wanted to get arrested, and had referenced the arrest of Freddie Gray, who died in police custody in Baltimore in April.

In court filings, CIA investigators said, “She informed officers she wanted to die of police brutality … which is one of the reasons she came to the CIA.”

“She’s a nice person,” Delgadillo said. “She’s one of the people I met in this country who wants to fight for what is right.”

Davis notified him in April that she would be moving from her Alexandria apartment by April 30, the same day she was arrested, he said.