Two National Guard soldiers have been shot near the White House in what US authorities say was a targeted ambush.
Both soldiers were critically injured, police said, after a state governor earlier tweeted they had died.
The soldiers, who were on patrol in Washington as part of a Trump-ordered crime crackdown, were shot about at 2:15pm on Wednesday, local time.
"A suspect came around the corner, raised his arm with a firearm and discharged it at the National Guard," local police executive assistant chief Jeffery Carroll said.
The suspect was shot before he was detained, Chief Carroll said, but it was not clear who shot him. There were no other suspects, he said.
"It appears, like I said, to be a lone gunman that raised the firearm and ambushed these members of the National Guard, and he was quickly taken into custody by other National Guard members and law enforcement members."
Mayor Muriel Bowser said it was a "targeted shooting". "One individual who appeared to target these guardsmen," she said.
US President Donald Trump said the shooter, who he called an "animal", was severely injured and would pay a "steep price".
Mr Trump was at his Florida golf course at the time of the incident.
Police and emergency crews cordoned off an area of downtown Washington, where National Guard members from multiple states have been on patrol since August.
Many of Washington's government workers had finished work early ahead of Thursday's Thanksgiving holiday.
The deployment of armed soldiers on Washington's streets has been controversial in the US capital, where police data has shown crime had been declining before Mr Trump ordered the crackdown.
Mr Trump has now ordered another 500 National Guard members to deploy in the city, Defense Secretary Pete Hegseth said.
"This will only stiffen our resolve to ensure that we make Washington DC safe and beautiful," he said.
Earlier, West Virginia Governor Patrick Morrisey wrote on social media that both soldiers were from his state and both had died. But he later said there were "conflicting reports" about their conditions.
Mr Morrisey initially wrote: "It is with great sorrow that we can confirm both members of the West Virginia National Guard who were shot earlier today in Washington, DC have passed away from their injuries."
But about 20 minutes later, he posted: "We are now receiving conflicting reports about the condition of our two Guard members and will provide additional updates once we receive more complete information."