These idiots knew that the cop was black, that the perpetrator had a gun, and was not cooperating with the cop. They had no reason to riot. Just as in Ferguson and Baltimore, these morons don't riot because of any cause, they riot just because they like to riot. And they loot just because they're thieves as well.
These uncivilized, barbaric savages are going to riot no matter how you respond, and no matter whether a cop shooting someone was justified or not. It doesn't help in any way to play kid gloves with these creeps. In fact, if you try to appease them (like in Baltimore, "giving them space to destroy"), it only encourages them to riot more.
There's one simple answer. Beat the fuckin daylights out of them with billy clubs, steel-tipped boots, and bayonets, and shoot them, if necessary. Litter the streets with their bleeding bodies. Leave none of them with full mouths of teeth, and make a example. Arrest all of them. and put them in the worst hell hole of prisons for 5 years minimum, bread & water, no TV, No radio, No music, no smoking, no cellphone, no computer, no books, no phone privileges, and a minimum of medical care for their injuries. And if they misbehave > Another 5 years added on.