A US commando was killed Sunday in Yemen during a daring raid carried out by the elite Navy SEAL team that nailed Osama bin Laden — the first military casualty under President Trump.

The White House said it was mourning the death of the soldier, whose identity hasn’t been released.

“Americans are saddened this morning with news that a life of a heroic service member has been taken in our fight against the evil of radical Islamic terrorism,” according to the statement on behalf of Trump.

The team was choppered in Saturday to target a key al Qaeda headquarters in Yemen — the first U.S. strike in the region since 2014 — and ended up killing 14 militants, including senior leaders Abdulraoof al-Dhahab, Sultan al-Dhahab and Seif al-Nims, in an ensuing gun battle that lasted nearly an hour.

The SEAL’s famous Team 6 fled with a valuable cache — some of the militants’ laptops, cell phones and other material “that will likely provide insight into the planning of future terror plots,’’ US Central Command said.

Three American fighters were also wounded in the operation, including two when an Osprey, a tilt-rotor military aircraft, accidentally crash-landed during the raid.

Former President Obama had been briefed on the planned operation, but left office before it could be executed, so Trump took over in authorizing it.

An al-Qaeda official claimed that about 30 people died, including the 8-year-old daughter of Anwar al-Awlaki, a radical Yemeni-American cleric killed in a US airstrike in Yemen in 2011, in the raid.