Mogadishu. Somalia’s police and intelligence chiefs have been sacked following militant Islamist group al-Shabab’s assault on the presidential palace, a government minister has said. Three of the attackers were killed and a fourth captured, the minister added. Al-Shabab fighters entered the compound in the capital, Mogadishu, on Tuesday before being driven out by African Union (AU) and government forces. This was the second assault on the heavily fortified compound this year. The police and intelligence heads - Abdihakim Saaid and Bashir Gobe respectively - have been replaced with immediate effect, said Information Minister Mustafa Dhuhulow. President Hassan Sheikh Mohamud was not at the palace at the time of the attack. Al-Shabab said 14 government soldiers had been killed in the assault but government officials have not referred to this claim. The raid started with a suicide bomber detonating a car at a barrier near the entrance to the compound, after which the militants attacked from two directions, correspondents say. At a press conference at the palace after the attack was repelled, Mr Mohamud said the government would not be intimidated by al-Shabab. “I say to them, you will not kill us, and nor will you demolish our spirit,” he added. Some 22,000 African Union troops are helping the UN-backed government battle al-Shabab, which wants to create an Islamic state.