On the contrary, you did it because you wanted to save hundred of lives. Your motive is the most relevant.
And notice, I did not say I killed the man, I said I shot the man in self defence. It can happen in several situations, is war moral? I am against all kinds of wars but these things...