WASHINGTON (NYTIMES) - Just five days after taking office, over dinner with his newly installed secretary of defence and the chairman of the Joint Chiefs of Staff, President Donald Trump was presented with the first of what will be many life-or-death decisions: whether to approve a commando raid that risked the lives of US Special Operations forces and foreign civilians alike.
President Barack Obama's national security aides had reviewed the plans for a risky attack on a small, heavily guarded brick home of a senior Al-Qaeda collaborator in a mountainous village in a remote part of central Yemen.
But MR Obama did not act because the Pentagon wanted to launch the attack on a moonless night and the next one would come after his term had ended.
With two of his closest advisers, Mr Jared Kushner and Mr Stephen K. Bannon, joining the dinner at the White House along with Defence Secretary James Mattis and General Joseph F. Dunford Jr, Mr Trump approved sending in the Navy's Seal Team 6, hoping the raid early last Sunday would scoop up cellphones and laptop computers that could yield valuable clues about one of the world's most dangerous terrorist groups. Vice-President Mike Pence and Mr Michael T. Flynn, the national security adviser, also attended the dinner.
As it turned out, almost everything that could go wrong did. And on Wednesday (Feb 1), Mr Trump flew to Dover Air Force Base in Delaware to be present as the body of the American commando killed in the raid was returned home, the first military death on the new commander-in-chief's watch.
The death of Chief Petty Officer William Owens came after a chain of miscues and misjudgments that plunged the elite commandos into a ferocious 50-minute firefight that also left three others wounded and a US$75-million (S$105-million) aircraft deliberately destroyed.
There are allegations - which the Pentagon acknowledged on Wednesday night are most likely correct - that the mission also killed several civilians, including some children.
The dead include, by the account of Al-Qaeda's branch in Yemen, the eight-year-old daughter of Anwar al-Awlaki, the US-born Al-Qaeda leader who was killed in a targeted drone strike in 2011.
Mr Trump on Sunday hailed his first counter-terrorism operation as a success, claiming the commandos captured "important intelligence that will assist the US in preventing terrorism against its citizens and people around the world".
A statement by the military's Central Command on Wednesday night that acknowledged the likelihood of civilian casualties also said the recovered materials had provided some initial information helpful to counter-terrorism analysts. The statement did not provide details.
But the mission's casualties raise doubts about the months of detailed planning that went into the operation during the Obama administration and whether the right questions were raised before its approval. Typically, the president's advisers lay out the risks, but Pentagon officials declined to characterise any discussions with Mr Trump.
A senior administration official said on Wednesday night that the Defence Department had conducted a legal review of the operation that Mr Trump approved and that a Pentagon lawyer had signed off on it.
Mr Trump's new national security team - led by Mr Flynn, the former head of the Defence Intelligence Agency and a retired general with experience in counter-terrorism raids - has said that it wants to speed the decision-making when it comes to such strikes, delegating more power to lower-level officials so that the military may respond more quickly.
Indeed, the Pentagon is drafting such plans to accelerate activities against the Al-Qaeda branch in Yemen. But doing that also raises the possibility of error.
"You can mitigate risk in missions like this, but you can't mitigate risk down to zero," said Mr William Wechsler, a former top counter-terrorism official at the Pentagon.
In this case, the assault force of several dozen commandos, which also included elite troops from the United Arab Emirates, was jinxed from the start. Al-Qaeda fighters were somehow tipped off to the troops' stealthy advance towards the village - perhaps by the whine of US drones that local tribal leaders said were flying lower and louder than usual.
Through a communications intercept, the commandos knew that the mission had been somehow compromised, but pressed on towards their target roughly 5 miles (8km) from where they had been flown into the area.
"They kind of knew they were screwed from the beginning," said one former Seal Team 6 official.
With the crucial element of surprise lost, the Americans and Emiratis found themselves in a gunbattle with Al-Qaeda fighters who took up positions in other houses, a clinic, a school and a mosque, often using women and children as cover, US military officials said in interviews this week.
The commandos were taken aback when some of the women grabbed weapons and started firing, multiplying the militant firepower beyond what they had expected. The Americans called in airstrikes from helicopter gunships and fighter aircraft that helped kill some 14 Al-Qaeda fighters, but not before an MV-22 Osprey aircraft involved in the operation experienced a "hard landing," injuring three more US personnel on board.
The Osprey, which the Marine Corps said cost US$75 million, was badly damaged and had to be destroyed by an airstrike.
The raid, some details of which were first reported by The Washington Post, also destroyed much of the village of Yakla, and left senior Yemeni government officials seething. Yemen's foreign minister, Mr Abdul Malik Al Mekhlafi, condemned the raid on Monday in a post on his official Twitter account as "extrajudicial killings".
Mr Baraa Shiban, a Yemeni fellow for Reprieve, a London-based human rights group, said he spoke by phone to a tribal sheikh in the village, Jabbr Abu Soraima, who told him: "People were afraid to leave their houses because the sound of choppers and drones were all over the sky. Everyone feared of being hit by the drones or shot by the soldiers on the ground."
After initially denying there were any civilian casualties, Pentagon officials backtracked somewhat on Sunday after reports from Yemeni authorities begin trickling in and grisly photographs of bloody children purportedly killed in the attack appeared on social media sites affiliated with Al-Qaeda's branch in Yemen.
Captain Jeff Davis, a Pentagon spokesman, said on Monday that some of the women were combatants.
The operation was the first known US-led ground mission in Yemen since December 2014, when members of Seal Team 6 stormed a village in southern Yemen in an effort to free an American photojournalist held hostage by Al-Qawda. But the raid ended with the kidnappers killing the journalist and a South African held with him.
That mission and the raid over the weekend revealed the shortcomings of secretive military operations in Yemen. The US was forced to withdraw the last 125 Special Operations advisers from the country in March 2015 after Houthi rebels ousted the government of President Abdu Rabbu Mansour Hadi, the Americans' main counter-terrorism partner.
The loss of Yemen as a base for US counter-terrorism training, advising and intelligence-gathering was a significant blow to blunting the advance of Al-Qaeda's branch in the country and keeping tabs on their plots.
The Pentagon has tried to start rebuilding its counter-terrorism operations in Yemen, however; last year, US Special Operations forces helped Emirati troops evict Al-Qaeda fighters from the port city of Mukalla.