Just two days ago , in a stunning reversal of fortune , Somalia 's transitional government , with the muscle of the Ethiopian military , reclaimed Mogadishu from the Islamist movement that had ruled large swaths of Somalia .