The upsurge in violence came after the government launched a campaign to disarm parts of Mogadishu.