Breaking News Emails

Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.
 / Updated 
By Pete Williams

Jesse Olivieri, the Pennsylvania man shot by a Secret Service agent at a security checkpoint outside the White House last month, told officials "I came here to shoot people," according to a court document filed Friday.

Olivieri, 31, remains hospitalized after he was shot by a Secret Service agent on May 20. He was charged Friday with using a firearm to interfere with a federal officer.

Related: Secret Service Shoots Man With Gun Near White House Checkpoint

U.S. Park Police investigators said Olivieri approached a security gate on the White House grounds openly holding a handgun. When he ignored repeated commands to drop the gun, he was shot once.

A Secret Service agent orders people into buildings near the entrance to the West Wing of the White House in Washington, Friday, May 20, 2016, after the White House was placed on security alert after shooting on street outside.Andrew Harnik / AP

Asked why he came to the House House, he told a Secret Service officer that he came there "to shoot people," according to court documents.

Law enforcement officials have said they believe it was a case of attempted "suicide by cop."

The incident led to a lockdown of the White House and the closing of streets in the area for several hours. President Obama was away at the time, but Vice President Biden was inside the White House complex, administration officials said.

The charge carries a maximum sentence of 20 years in prison.