Killing in Self-Defence

Question:
If you are fighting with someone who is trying to kill you and you kill them, is it a sin?

Answer:
Although the laws of our country may consider someone “not guilty” who kills someone in self-defense, the fact remains that a person was killed. Therefore, the commandment in Exodus 20:13 was violated and a sin was committed.