Ethiopian troops entered Somalia two years ago to help the interim government fight an Islamist movement that was threatening to take over the country .