Baidoa is the sole outpost held by Somalia 's weak transitional government , which is being challenged by Islamists who control the capital , Mogadishu , and much of the country 's south .