Sharif gave himself up to Kenyan authorities on the border with Somalia last month after his movement lost its grip on Mogadishu to Ethiopian-backed government troops in December.