Getty Images
Now playing
01:37
Why Al-Shabaab is a growing threat (2015)
al shabaab recruiting video features trump seg newday_00001307.jpg
Youtube/The_Path_to_Paradise
al shabaab recruiting video features trump seg newday_00001307.jpg
Now playing
01:26
Terror group uses Trump in recruitment video
kenya al-shabaab bus attack muslims shield christians mckenzie pkg nr_00005827.jpg
kenya al-shabaab bus attack muslims shield christians mckenzie pkg nr_00005827.jpg
Now playing
01:59
Muslims shield Christians in Kenya bus attack
pkg purefoy kenya inside garissa university _00003226.jpg
pkg purefoy kenya inside garissa university _00003226.jpg
Now playing
02:24
CNN goes inside site of university massacre
pkg mckenzie kenya garissa survivor_00002117.jpg
pkg mckenzie kenya garissa survivor_00002117.jpg
Now playing
02:01
Woman: I 'wiped myself' with blood to survive
pkg purefoy garissa fault lines_00000110.jpg
pkg purefoy garissa fault lines_00000110.jpg
Now playing
01:53
Security concerns as Kenya mourns
lv kenya school attack photos _00001303.jpg
CNN
lv kenya school attack photos _00001303.jpg
Now playing
02:20
First photos from inside Kenyan school massacre
Kenyan Defence Forces are seen at the Garissa University campus after an attack by Somalia's al Qaeda-linked al-Shabaab gunmen in Garissa on April 2, 2015.
CARL DE SOUZA/AFP/Getty Images
Kenyan Defence Forces are seen at the Garissa University campus after an attack by Somalia's al Qaeda-linked al-Shabaab gunmen in Garissa on April 2, 2015.
Now playing
01:50
147 students massacred at university in Kenya
lead dnt starr kenya university attack_00010120.jpg
Citizen TV
lead dnt starr kenya university attack_00010120.jpg
Now playing
02:27
Al-Shabaab claims responsibility for university attack
Al-Qaeda linked al-shabab recruits walk down a street on March 5, 2012 in the Deniile district of Somalian capital, Mogadishu, following their graduation.
Mohamed Abdiwahab/AFP/Getty Images/FILE
Al-Qaeda linked al-shabab recruits walk down a street on March 5, 2012 in the Deniile district of Somalian capital, Mogadishu, following their graduation.
Now playing
02:41
Al-Shabaab: A Somali terror group with global ambitions
KARE
Now playing
03:17
Al-Shabaab calls for attacks on western shopping malls
Now playing
04:06
DHS Secretary: 'You have to be vigilant'
pkg robertson kenya shabaab new focus_00013030.jpg
pkg robertson kenya shabaab new focus_00013030.jpg
Now playing
03:08
Why Somali jihadists would strike Kenya
wrn von un convoy attacked in somalia_00001622.jpg
wrn von un convoy attacked in somalia_00001622.jpg
Now playing
01:02
U.N. convoy attacked in Somalia
Soldiers of Kenyan Defence Forces look over the bodies of some  36 Kenyans  as they lie at a quarry, Tuesday, Dec. 2, 2014. Kenya police say that at least 36 quarry workers were killed in an attack in northern Kenya  by suspected Islamic extremists from Somalia. Kenyan police chief David Kimaiyo confirmed the workers were killed early Tuesday in Mandera County. (AP Photo) ,
ap
Soldiers of Kenyan Defence Forces look over the bodies of some 36 Kenyans as they lie at a quarry, Tuesday, Dec. 2, 2014. Kenya police say that at least 36 quarry workers were killed in an attack in northern Kenya by suspected Islamic extremists from Somalia. Kenyan police chief David Kimaiyo confirmed the workers were killed early Tuesday in Mandera County. (AP Photo) ,
Now playing
01:25
Al-Shabaab kills 36 in gruesome attack
nr cnni mann intv menkaus_00003504.jpg
nr cnni mann intv menkaus_00003504.jpg
Now playing
03:54
Taking back Somalia
erin dnt feyerick terror audio tapes_00013622.jpg
U.S. Department of Justice
erin dnt feyerick terror audio tapes_00013622.jpg
Now playing
03:09
Audio of terrorists recruiting Americans
Smoke rises from the Westgate mall in Nairobi on September 23, 2013. Kenyan troops were locked in a fierce firefight with Somali militants inside an upmarket Nairobi shopping mall in a final push to end a siege that has left 43 dead and 200 wounded with an unknown number of hostages still being held. Somalia's Al Qaeda-inspired Shebab rebels said the carnage at the part Israeli-owned complex mall was in retaliation for Kenya's military intervention in Somalia, where African Union troops are battling the Islamists.
CARL DE SOUZA/AFP/Getty Images
Smoke rises from the Westgate mall in Nairobi on September 23, 2013. Kenyan troops were locked in a fierce firefight with Somali militants inside an upmarket Nairobi shopping mall in a final push to end a siege that has left 43 dead and 200 wounded with an unknown number of hostages still being held. Somalia's Al Qaeda-inspired Shebab rebels said the carnage at the part Israeli-owned complex mall was in retaliation for Kenya's military intervention in Somalia, where African Union troops are battling the Islamists.
Now playing
02:16
Was Al-Shabaab strike a message to ISIS?
Men look at the wreckage of two vehicles sitting on the roadside in Mpeketoni.
STRINGER/AFP/Getty Images
Men look at the wreckage of two vehicles sitting on the roadside in Mpeketoni.
Now playing
02:00
48 dead in Kenya coastal town attack
nr lemon video inside kenya mall _00003630.jpg
nr lemon video inside kenya mall _00003630.jpg
Now playing
00:42
Video shows gunmen inside Kenya mall

Story highlights

Americans face surprise attack

Five Al-Shabaab militants killed

(CNN) —  

U.S. Special Operations called in an airstrike on Al-Shabaab militants in Somalia Thursday when a mission to help Ugandan forces the American troops were accompanying turned into an unexpected battle.

The incident occurred west of Mogadishu, according to U.S. military officials familiar with reports from the scene. No U.S. troops were wounded in what quickly turned into a firefight between Ugandan forces and Al-Shabaab militants.

Initial reports from the field, details of which were shared with CNN, suggested the U.S. special forces were involved in the firefight. But military officials said later Thursday that further information made clear the U.S. troops weren’t involved in the firefight.

Ugandan troops, who are in the country as part of African forces backing the Somali government, had been called in to clear an illegal checkpoint being run by Al-Shabaab, the al Qaeda affiliate in Somalia. The Ugandans came under fire from an estimated 20 militants, the officials said.

When the Ugandans were unable to completely suppress the Al-Shabaab fire, the U.S. “advise and assist” team, which was in a concealed position nearby, called in an airstrike on the checkpoint.

The U.S. forces stayed in concealed positions and didn’t fire their weapons. The Ugandans engaged the militants in a firefight.

Five militants were believed killed by the U.S. airstrike, the officials said.

The U.S. maintains a force of about 50 troops in Somalia to advise and assist both Somali and other African forces operating in Somalia. They are not expected to be in combat but are prepared if they come under fire, one of the officials said. Helicopters, drones and manned aircraft are available for quick reaction airstrikes, the official noted.

Correction: This story and headline have been updated to reflect that U.S. forces did not come under fire or fire on the militants, based on more recent information provided by military sources.