Ethiopian troops entered Somalia in 2006 to help the government oust an Islamist movement that had seized power in Mogadishu and other cities .