Police said the attack was carried out by suspected al-Shabab fighters who launched an assault at dawn.