Clashes between Somali security forces and militias in Mogadishu led to civilian evacuations.