It's definitely a salient point. I think the more finessed answer is, you use the military to create a system of justice. Because, ultimately, the problem with a military solution is that people can look at it and say: but that isn't just.
Michael Yon's two most recent actual dispatches (albeit hard to find amongst his book promoting and etc) were about just this:
Rule of Law
Left of Bang