DUBAI: The al-Qaida-linked militant group al-Shabab claimed an attack that killed four Emirati troops and a Bahraini military officer on a training mission at a military base in the Somali capital, authorities said on Sunday.The attack on Saturday targeted the troops at the General Gordon Military Base in Mogadishu. Details about the attack and whether it killed others remained scarce Sunday, though Somali President Hassan Sheikh Mohamud offered his condolences to the UAE for the loss of its troops.Early Sunday, the UAE’s state-run WAM news agency reported the killing of three of its troops and the Bahraini officer in a “terrorist act”. A fourth later died en route back to the Emirates, WAM reported.WAM released footage of three flag-draped caskets coming off of an Emirati Boeing C-17A Globemaster III at Al Bateen Executive Airport in Abu Dhabi with an honour guard present.WAM identified the dead as a colonel, two warrant officers and a corporal.Anwar Gargash, a senior Emirati diplomat, offered condolences to those killed and a quick recovery for the wounded.“No treacherous act will prevent us from continuing the message of security and safety and combating extremism and terrorism in all its forms,” Gargash wrote on X, formerly Twitter.The military of Bahrain, an island nation in the Persian Gulf off the coast of Saudi Arabia, later acknowledged the death of a major in a statement carried by the state-run Bahrain News Agency.Al-Shabab claimed the attack in a statement online, alleging it killed multiple people involved in the Emirati military effort. It described the UAE, a federation of seven sheikhdoms on the Arabian Peninsula, as an “enemy” of Islamic Shariah law for backing the Somali government in its efforts to battle al-Shabab.Al-Shabab, or “the youth” in Arabic, is a Sunni Islamic extremist group in Somalia born out of that country’s years of anarchy following its 1991 civil war. The affiliate of al-Qaida once held Mogadishu. Over time, an African Union-led force, with the backing of the US and other countries, pushed the militants out of Mogadishu. In the years since, al-Shabab has remained a threat as it seeks to overthrow the Western-backed Somali government.