Well, a measured quantity of violence ('violence' being a very broad category) targeted at someone who is clearly causing harm is sometimes the only effective way of stopping a greater amount of harm. No-violence is clearly better, but assuming that (say) a rape is being committed, some degree of violence is a reasonable response to stop things from happening or deter other things.