In essence violence justifies counter-violence. The more the angry protesters threaten or attack the police, the less "wrong" the current response looks. Non-violence tries to starve the legitimization of excessive force.
This militarization is not a good idea and should be limited or abandoned. But "riots" are hardly making a point against military gear.