The statement Saturday on an Al-Shabab website named the dead Moroccan as Sheik Abu Ibrahim. The statement said two others — including a second foreigner — were killed in the overnight Friday attack.

A US official told The Associated Press the attack was carried out by a drone. Somali officials identified another of the militants killed in the attack as a Kenyan citizen.

Somalia’s Al-Shabab counts hundreds of foreign fighters among its ranks. It formally merged with Al-Qaeda this month.

Al-Shabab has been forced out of Mogadishu and faces military attacks on three sides.