Al-Shabab claimed an explosion at Mogadishu’s military school and targeted a recruitment center, fueling fears of escalating violence in Somalia.