It wouldn't be a sin to kill people in the defense of others, yourself or the greater good. It would however be a sin in my opinion to not take any action simply due to fear of the possible repercussions, especially when you know what the right action is.