Watch The Moment Secret Service Shoots White House Gunman In The Gut

The man, who brazenly walked up to the White House checkpoint in May with a gun in hand, was summoned to court this week.

A video of a man shot at the White House checkpoint by Secret Service agents in May has now been released.

Jesse Olivieri, a resident of Ashland, Pennsylvania, was shot May 20 at the security gates around the White House, after he casually tried to saunter through the gates with a gun in plain sight. Secret Service agents repeatedly told him to drop the .22 caliber Ruger handgun and when he refused to comply, opened fire at him.

CCTV footage shows Olivieri dropping to the ground, but then quickly sitting up, indicating he was not fatally injured by the bullet.

He was arrested by the agents on the spot and later hospitalized for the gunshot wound.

A Secret Service agent says Olivieri told an officer he “came here to shoot people,” however, another law enforcement officer said Olivieri was trying to commit “suicide by cop.”

Unsuccessful on both accounts, Olivieri appeared in a federal court in a wheelchair on Monday.

Defense attorney Loui Itoh said Olivieri had never pointed a firearm at anyone before and had no prior criminal record. Itoh requested home detention for the culprit and stated Olivieri was undergoing psychiatric treatment.

But U.S. Magistrate Judge Michael Harvey said Olivieri was "a danger to both himself and the community," and called the man's actions "a crime of violence involving law enforcement officers whose job it is to protect the perimeter of the White House.”

Olivieri is charged with resisting officers with dangerous weapons, which carries a maximum sentence of 20 years in prison.

Read More: Man Tries To Jump Fence At White House, Sparking Lockdown