The rioting and violence reflected a government not in control