The Somali government , which is threatened by an Islamist insurgency , lacks the power to stop the attacks .