Islamists briefly controlled much of Somalia in 2006 before a joint offensive by the government and Ethiopia pushed them from power .