WASHINGTON (WJZ) — A man and a U.S. Secret Service officer were taken to a D.C. hospital following a shooting near the White House Monday evening, the agency said.

The shooting happened at 17th Street and Pennsylvania Avenue — outside the White House gates — while President Donald Trump was holding a news conference.

READ MORE: Nefertiti Griffin Wins WJZ Black History Oratory Competition 2021

TOPSHOT – A US Secret Service uniform officer’s bike is seen laying on the sidewalk on Pennsylvania Avenue near the White House in Washington, DC, on August 10, 2020. – Secret Service guards shot a person, who was apparently armed, outside the White House on August 10, 2020. President Donald Trump said just after being briefly evacuated in the middle of a press conference. (Photo by Eric BARADAT / AFP) (Photo by ERIC BARADAT/AFP via Getty Images)

In a statement Monday night, the Secret Service said the 51-year-old man approached the officer and said he had a weapon. The man then turned around, ran toward the officer and pulled something from his clothing.

When the man crouched into a “shooter’s stance,” the agency said its officer shot him in the torso.

Myron Berryman Identified As Suspect In Shooting Near White House That Interrupted President Trump’s Press Conference

“At no time during this incident was the White House complex breached or were any protectees in danger,” the Secret Service tweeted.

READ MORE: 10-Year-Old Girl, 2 Men Injured In Shooting After Argument Breaks Out In West Baltimore, Police Say

Officials did not provide details about the man’s or the officer’s conditions.

While the president was briefing reporters, an official whispered something to him, leading him to temporarily end the news conference and leave the room.

Trump later said he was taken to the Oval Office before returning to the briefing room.

DC Metropolitan Police will investigate the shooting.

MORE NEWS: Soft Launch Of Pop-Up COVID-19 Vaccination Clinic Held In Baltimore's Mondawmin Neighborhood

Read more on CBSNews.com.

CBS Baltimore Staff