Al-Shabaab militants attacked AMISOM headquarters in Mogadishu.
Mohamed Abdiwahab/AFP/Getty Images
Al-Shabaab militants attacked AMISOM headquarters in Mogadishu.

Story highlights

NEW: A civilian on the base also dies during lunchtime attack, AU says

Al-Shabaab says it detonated a car bomb to breach AU's heavily fortified base in Mogadishu

African Union: 5 Al-Shabaab were killed in the raid

Some 20,000 African troops are in the war-torn nation to conduct "peace support operations"

(CNN) —  

Five Al-Shabaab militants are dead after they attacked an African Union military base in Somalia on Thursday, AU officials said.

The militants attacked the Halane military base in Mogadishu, Somalia’s largest base for African Union troops, according to the African Union Mission in Somalia.

Two militants detonated themselves inside the Halane base and three were shot dead by AU troops during the raid, AMISOM spokesman Ali Aden Houmed said.

Three AU soldiers and a civilian died in the attack, AMISOM said on its website.

The AMISOM statement said other personnel at Halane are “safe and secure.” Some of the attackers wore Somali military uniforms during the lunchtime raid on the facility located close to Mogadishu International Airport, the AU said.

A spokesman for the al Qaeda-linked terror group described the attack on the heavily fortified base – which also houses several U.N. and international agencies – on Radio Andalus, a pro-Al-Shabaab broadcaster.

“Our Mujahedeen forces detonated a car bomb at the entrance of the Halane compound … then managed to enter the facility,” Sheikh Abdiaziz Abu Musab said. A firefight then broke out with troops, he said.

Maman S. Sidikou, special representative of the AU Commission chairperson (SRCC) for Somalia and head of AMISOM, offered his condolences to the families of the victims and “applauded the quick response and bravery of the … troops in quelling this reprehensible attack,” according to AMISOM.

Al-Shabaab has been waging war in Somalia in an effort to implement a stricter form of Islamic law, or sharia.

Established in 2007, the U.N.-backed AMISOM currently has some 20,000 African Union troops deployed in the impoverished nation to “conduct peace support operations” and to “stabilize the situation.”

What is Al-Shabaab and what does it want?

CNN’s Omar Nor reported from Somalia and Hamdi Alkhshali and Kevin Conlon reported from Atlanta. CNN’s Jason Hanna conributed to this report.