Ethiopia pulled out its soldiers from Somalia in 2009 after a two-year invasion that defeated an Islamist movement, but the group's military wing, the Shebab, regrouped and has waged a bloody war against a provisional government that has only a tenuous hold.