Investigators respond to a shooting outside a federal courthouse in downtown Los Angeles on July 23, 2019. (Credit: KTLA)

This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

A security officer shot and wounded a man wielding a knife in front of a federal courthouse in downtown Los Angeles Tuesday afternoon, police said.

The gunfire was reported about 2:15 p.m. outside the First Street U.S. Courthouse at 350 W. First St., according to L.A. Police Officer Jeff Lee.

The man with a knife was shot in the hand. He was hospitalized but expected to survive, Lee said.

FBI spokesperson Laura Eimiller said the officer fired after the armed man approached court security and became involved in an altercation.

A man in his 30s or 40s was detained, Lee said. Police and FBI officials declined to comment on whether that man was the suspect, citing the ongoing investigation.

A knife was recovered at the scene, said LAPD Detective Meghan Aguilar.

The steps leading to the courthouse were blocked off, and the area was expected remained closed throughout the evening.

FBI investigators and U.S. Marshals were leading the investigation since the confrontation occurred on federal property.

Agents could be seen analyzing what appeared to be bullet holes outside the L.A. Law Library, across the street from the courthouse.

It’s unclear whether the shooting interfered with Tuesday’s court proceedings.

Several other government buildings are nearby, including LAPD and L.A. County sheriff’s headquarters, municipal courthouses and L.A. City Hall.

No further details were available.

KTLA’s Matt Phillips contributed to this report.

34.053532 -118.246629