The Catechism in Questions & Answers

336. Is killing in self-defence a violation of the Fifth Commandment?

Yes, even killing in self-defence is a violation of the Fifth Commandment.