WASHINGTON — A crazed gunman shot two National Guard troops in a cowardly “ambush”-style attack — leaving them in critical condition — just blocks from the White House on Wednesday in what’s now being investigated as a terror attack, according to law enforcement sources and officials.

The gunman — identified by sources as Afghan national Rahmanullah Lakanwal, 29 — was lying in wait before rounding the corner and 17th and I Streets around 2:15 p.m. and ambushed the pair of Guard members and opened fire, authorities and sources said.

Lakanwal, who has a Washington state address, came to the US as part of the 2021 Afghanistan withdrawal, sources said.

“There were other members that were in the area. They were able to, after some back and forth, subdue the individual and bring them into custody,” Metro Police Department executive assistant chief Jeffery Carroll said at a press conference. “Within moments, members of law enforcement in the area were also able to assist and bring that individual into custody.”

Follow The Post’s live coverage of President Trump and national politics for the latest news and analysis

Two National Guard troops were shot Wednesday, just blocks from the White House. MQ RYAN via REUTERS

An unidentified man lies on a stretcher inside an ambulance in downtown Washington, DC. AFP via Getty Images

A U.S. Capitol Park Police helicopter is seen on the National Mall evacuating a National Guard shooting victim, Wednesday, Nov. 26, 2025, in Washington. AP

ATF officers are seen after reports of the shooting near the White House in Washington. AP

The armed soldiers, who were patrolling the streets, exchanged gunfire with the shooter, and other guardsmen stationed nearby rushed to the area after hearing shots ring out.

One female guard was shot in the chest — before Lakanwal shot her in the head, law enforcement sources. He then allegedly fired at second guard before a third guard stationed nearby rushed in and took him down, the sources said.

Photos in the aftermath of the horrifying daylight assault showed one of the troops shot in the head near Farragut Square, a bustling public park with restaurants and retail shopping stores in between the Farragut West and Farragut North metro stations.

Glass was strewn about the crime scene just outside the Farragut West Metro Station in Northwest DC from the bursts of gunfire as bystanders rushed for cover in what Carroll called “a targeted attack.

Law enforcement sources later said the shooting was being investigated as an act of terror.

Lakanwal entered the country under Operation Allies Welcome and resettled in Bellingham, Washington — but he overstayed his visa, according to sources and Fox News.

More than 100,000 Afghans were brought into the US as part of Operations Allies Welcome. The disastrous withdrawal left 13 US service members dead when ISIS-K suicide bombers and gunmen attacked the airport in Kabul.

FBI Director Kash Patel declared that the bureau and its law enforcement partners would use “all of our resources to make sure we find the perpetrators responsible for this heinous act,” vowing they will be brought to justice.

“Please send a prayer to those brave warriors … they are the heroes of this day, and we must remember them every day and remember their sacrifice,” he said at a press conference in the hours following the shooting.

A member of the Secret Service stands behind yellow police tape after the shooting. AFP via Getty Images

Members of law enforcement and National Guard soldiers respond to a shooting near the White House. Getty Images

West Virginia Gov. Patrick Morrisey posted on X around 3:40 p.m. that both service members from his state had “passed away from their injuries,” but 20 minutes later added that he was “receiving conflicting reports about the condition of our two Guard members and will provide additional updates once we receive more complete information.”

Follow the latest on the National Guard shooting in Washington, DC:

Mayor Muriel Bowser ignored a reporter’s shouted question about the apparently premature post and subsequent walk-back.

Authorities confirmed at a 4:45 p.m. news conference that the two Guard members were transported to a hospital in critical condition. They also said the suspect — who was hauled away nearly naked in an ambulance — had acted alone.

DC’s Metro Police Department confirmed the shooting occurred a little after 2:30 p.m. Getty Images

A Washington Metropolitan Police officer directs pedestrians after reports of two National Guard soldiers being shot. AP

Law enforcement sources told The Post that the suspect was shot four times.

Tourist Tim Moye of Newton, Georgia, said he was about a block away from the shooting when it happened — and he heard two gunshots, a brief pause, and then three more. A rush of people ran his way and said “somebody was shooting.”

A parking garage attendant a half-block away said he heard about eight shots before rushing inside along with many pedestrians.

The gunman fired on the soldiers at Farragut Square in Northwest DC, less than a half mile north of the White House. AP

“Our entire state grieves with their families, their loved ones, and the Guard community,” West Virginia Gov. Patrick Morrisey wrote on X. ” We will demand full accountability for this horrific act.” AP

Two National Guard troops were shot near the White House on Wednesday, according to a report. X / @KellieMeyerNews

“It’s scary,” said a clearly shaken uniformed worker, speaking in broken English as she ventured out of her workplace near K Street, the major road synonymous with DC lobbying.

Both President Trump and Vice President JD Vance were not in DC at the time of the shooting, with Trump in Florida and Vance visiting troops in Kentucky.

Members of the US Secret Service were photographed responding to the incident, Newsmax’s Mike Carter posted on X. X / @ConservBrief

DC’s Metro Police Department confirmed the shooting occurred at 17th and I Street, NW, but didn’t share how many victims were involved.  AFP via Getty Images

“The animal that shot the two National Guardsmen, with both being critically wounded, and now in two separate hospitals, is also severely wounded, but regardless, will pay a very steep price,” Trump posted on his Truth Social.

“God bless our Great National Guard, and all of our Military and Law Enforcement. These are truly Great People. I, as President of the United States, and everyone associated with the Office of the Presidency, am with you!”

Preliminary reports noted that members of the National Guard were targeted and that a suspect appeared to be in custody. AFP via Getty Images

An aerial view of the scene where the shooting occured. Citizen APP

Secretary of War Pete Hegseth said the shooting would “only stiffen our resolve” as he announced another 500 troops would be deployed to join the more than 2,000 National Guard members in DC.

At least one of the National Guard service members was administered CPR, law enforcement sources added. The suspect is also now at a DC hospital.

A ground stop was later issued at Ronald Reagan National Airport outside DC for departing flights over security concerns.

“The White House is aware and actively monitoring this tragic situation. The President has been briefed,” White House Press Secretary Karoline Leavitt added in a statement shortly after the barrage of gunfire.

Members of the US Secret Service were photographed responding to the incident after the shooting in Farragut Square, about a five-minute walk from the executive mansion.

One source counted at least 20 shell casings at the scene immediately afterward.