“There was an actual shooting and somebody’s been taken to the hospital,” the president said.
He added that the shots were fired by law enforcement officers and he believed the person who was shot was armed. “It was the suspect who was shot,” he said.
Mr Trump said he was escorted to the Oval Office by the agent. The White House was placed on lockdown following the incident.
The shooting occurred just before 6pm after a 51-year-old man approached a uniformed Secret Service officer near 17th Street and Pennsylvania Avenue just blocks from the White House and told the officer he had a weapon, Secret Service Uniformed Division chief Tom Sullivan said.
The man then turned around and “ran aggressively toward the officer, and in a drawing motion, removed an object from his clothing,” Mr Sullivan said.
The suspect then “crouched into a shooter’s stance, as if about to fire a weapon” before the officer shot the man once in the torso, he said.
Mr Sullivan would not answer any questions at a late-night news conference near the scene and did not say whether the suspect was armed.
Both the suspect and the officer were taken to the hospital.
The District of Columbia fire department said the suspect suffered serious or possibly critical injuries. Mr Sullivan released no information about the officer.
Law enforcement officials were still trying to determine the suspect’s motive and authorities were investigating whether he has a history of mental illness.
The suspect’s name was not immediately released.
“At no time during this incident was the White House complex breached or were any protectees in danger,” Mr Sullivan added.
The shooting has prompted an internal review by the Secret Service and is also being investigated by the Metropolitan Police Department, a standard protocol.
President Trump praised the work of Secret Service personnel for their work in keeping him safe.
Asked if he was shaken by the incident, Mr Trump asked reporters: “I don’t know. Do I seem rattled?”