Somali Islamists ambush troops outside Mogadishu