In Brief CCC 2321
© Libreria Editrice Vaticana Source: vatican.va
The prohibition of murder does not abrogate the right to render an unjust aggressor unable to inflict harm. Legitimate defense is a grave duty for whoever is responsible for the lives of others or the common good.
Read the full chapter 2. You Shall Love Your Neighbor as Yourself ¶2196–2557