It's not the role of the military to do local law enforcement, because of the training, technology, and roles regarding civil liberties.
Now if the local politicians are negligent to the point that it's the only way to enforce basic law, then this is less about the military vs police, and more-so about who can order which. In that case, I'd agree with you.
However, given the evidence that I've seen on this specific case, I am not convinced it was justified.