The mission facing the Navy Seals as they approached a remote desert compound was a risky one.
Their aim was to detain Yemeni tribal leaders collaborating with al-Qaeda and gather intelligence that could plug a critical gap in US understanding of one of the world's most dangerous militant groups.
Instead, a massive firefight ensued, claiming the life of an American sailor and at least one Yemeni child, serving as an early lesson for President Donald Trump's national security team about the perils of overseas ground operations.
The January 29 raid in Yemen's Bayda governate, which also included elite forces from the United Arab Emirates, was the first counter-terrorism operation approved by Trump, who took office a week earlier.
And the death of Chief Special Warfare Operator William "Ryan" Owens, who would later succumb to his injuries, marked the first combat death of Trump's young presidency.
Special operations like this have always been risky for presidents to approve. Trump and some of his advisers have already promised to give the military greater rein in authorising such missions as part of their desire to wipe out extremist threats. But the President has also said he is leery of getting entangled too deeply in costly operations overseas.
In Sunday's operation, the Seals faced difficulties from the start. After the US forces descended on the village of Yaklaa, a heavily guarded AQAP stronghold surrounded by land mines, militants launched an intense counter-attack.
As the fight intensified, officials called in Marine Cobra helicopter gunships, backed by Harrier jets, to strike the AQAP fighters, according to US officials familiar with the incident. US forces were extracted by an elite Special Operations air regiment.
US Special Operations aircraft were then sent in to pull the team and its casualties out of the fray, banking into the night under heavy fire to link up with a Marine quick reaction force that had taken off in MV-22 Ospreys from the USS Makin Island floating offshore.
The two units planned to meet up in the desert to transfer the wounded Seals so they could be taken back to amphibious assault ship for treatment, but one of the Osprey's lost power, hitting the ground hard enough to wound three Marines and disable the aircraft.
With the twin-engine transport out of action, a Marine jet dropped a GPS-guided bomb on the disabled US$70 million Osprey to ensure that it did not fall into militant hands.
Our prayers go out to @us_navyseals William "Ryan" Owens, killed during a raid on al-Qaida in Yemen. #NeverForgethttps://t.co/Zhj15PdCDr pic.twitter.com/KJatYaZWrq— NYPDCounterterrorism (@NYPDCT) February 1, 2017
Yemeni officials said the operation also killed 15 women and children including the 8-year-old daughter of the late radical-Yemeni American cleric, Anwar Al-Awlaki who was killed in 2011 in a US drone strike. US officials said they were unable to immediately confirm the civilian deaths, but suggested most or all of those killed were militants.
Pentagon spokesman Captain Jeff Davis said that women participated in the gunfight and some were killed.
According to current and former officials with knowledge of the operation, military officials had proposed the operation weeks before under the Obama Administration, part of an attempt to compensate for intelligence losses caused by Yemen's extended civil conflict.
Since 2015, Saudi Arabia has led a coalition of Arab nations launching air attacks on Shia Houthi rebels. The United States has provided some support to Saudi air operations but has distanced itself over allegations of repeated attacks on civilian targets.
3 separate US strikes/raids have killed Anwar al Awlaki, his 16 yr old son & his 8 yr old daughter, all US citizens. https://t.co/PyrJUGLDNc— Rosa Brooks (@brooks_rosa) February 1, 2017
After considering the operation for several weeks, officials concluded the raid would not be possible before Obama's January 21 departure, and they began to tee up a final decision for Trump's top advisers.
The mission, the first US-led ground raid in Yemen since 2014, comes as the US tries to rebuild its counterterrorism mission there. Last year, the US established a tiny Special Operations presence in coastal Yemen, working alongside Emirati troops to keep tabs on activities by Al-Qaeda in the Arabian Peninsula.
The group has been one of the most potent branches of the global militant network and has been involved in multiple plots to attack the West.
The operation may also be a sign of things to come. The Pentagon, according to two defence officials who requested anonymity to discuss intelligence matters, is drawing up plans to be considered by the White House that, if approved, could delegate decision-making for operations in Yemen to a lower level and accelerate activities against AQAP.
While seemingly indicative of a more aggressive stance by Trump, one official described the raid and new proposal as an outgrowth of earlier Obama-era operations that have pushed al-Qaeda militants from their sanctuaries into areas and provided more opportunities for US strikes.
Eight-year-old daughter of Anwar Al-Awlaki was killed in Yemen raid, according to the girl's family https://t.co/C3WnMmRUr6pic.twitter.com/MBoKCFJkdA— CNN (@CNN) January 31, 2017
"We expect an easier approval cycle [for operations] under this Administration," another defence official said.
The same model was applied after an extended US air campaign in Libya, which pushed Isis (Islamic State) militants into desert camps where they were eventually pursued and destroyed by stealth bombers.
A former senior defence official familiar with prior operations in Yemen said that the raid and the potential for expanded operations were "overdue".
"We really struggled with getting the White House comfortable with getting boots on the ground in Yemen," the former official said. "Since the new Administration has come in, the approvals for what the Pentagon has appeared to have gone up."
Already, the Trump Administration, in a flurry of recent executive actions, has shown a penchant for tightly held decision-making that has left out key agency officials.
Luke Hartig, who was a senior official for counter-terrorism under President Obama, cautioned that even swift or delegated decision-making on national security matters required consultation with a range of agencies that could address legal, diplomatic and other questions.
"It's not about slowing things down - it's about the making sure the complexities are well addressed prior to approval," said Hartig, who is now a fellow at the New America Foundation and runs a research group at National Journal.
The new Trump White House touted the operation this week as a success. A release by the White House on Monday said the raid killed 14 militants and captured intelligence that could deter future attacks.
Yesterday, Trump spoke to Owens' family to offer his condolences.