A U.S. special operations member was killed Thursday fighting terror group Al Shabab -- Al Qaeda's third-largest affiliate -- in Somalia, U.S. officials told Fox News.
Fox News is withholding naming the soldier until the next of kin are notified.
Two other U.S. special operations personnel were wounded in the attack in Somalia, one official said; however, the Pentagon would not disclose the extent of the injuries due to privacy concerns.
"U.S. forces were conducting an advise and assist mission alongside members of the Somali National Army" near Barii, about 40 miles west of Mogadishu, according to a statement from U.S. Africa Command.
A Somali intelligence official confirmed the U.S. military operation to The Associated Press, saying U.S. forces in helicopters raided an Al Shabab hideout near the Somali capital on Thursday night and engaged with fighters.
The official, who spoke on condition of anonymity because he was not authorized to speak to the media, said the helicopters dropped soldiers near Dare Salaam village in an attempt to capture or kill extremists in the area.
The official said the fighters mounted a stiff resistance against the soldiers.
Al Shabab "presents a threat to Americans and American interests," the USAC statement said.
Somalia's new Somali-American president, Mohamed Abdullahi Mohamed, last month declared a new offensive against Al Shabab, which is based in Somalia but has claimed responsibility for major attacks elsewhere in East Africa.
In late March, the White House approved a Pentagon request to conduct offensive operations against Al Shabab in Somalia. This meant drone strikes and raids were given the green light to happen outside of self defense, which was the previous policy under the Obama administration.
The Department of Homeland Security in March banned electronics larger than mobile phones on flights from some Muslim nations to the U.S. a year after Al Shabab attempted to bring down an airliner in Somalia using a bomb hidden inside a laptop.
The extremist group, which was chased out of Mogadishu years ago but continues to carry out deadly attacks there, has vowed to step up the violence in response to the moves by Trump and Mohamed.
Pressure is growing on Somalia's military to assume full security for the country as the 22,000-strong African Union multinational force that has been supporting the fragile central government plans to leave by the end of 2020.
Fighters linked to ISIS are a relatively new and growing challenge in the north of the country, which has seen a quarter-century of chaos since dictator Siad Barre fell in 1991.
The United States pulled out of Somalia after 1993, when two helicopters were shot down in Mogadishu and bodies of Americans were dragged through the streets.
The Associated Press contributed to this report.
Lucas Tomlinson is the Pentagon and State Department producer for Fox News Channel. You can follow him on Twitter: @LucasFoxNews