Of course your immune system (and Buddha's one) is constantly killing bacteria to keep you alive. Is there a self defense exception? There should be a line somewhere but it's difficult to draw it when we don't even agree what consciousness is. It could also be totally impractical. Probably a Buddhist alive is better than a Buddhist dead because it's necessary to kill smaller beings to be alive.