Al-Shabaab frequently targets military installations as part of its insurgency aiming to topple the Somali government and impose its strict version of Islamic law.