The bible doesn’t say “Thou shall not kill”, it says, “Thou shall not murder”, if a thief is killed during his or her crime, that isn’t murder according to God. Exodus 22:2 If a thief is caught while breaking in and is struck so that he dies, there will be no bloodguiltiness on his account.
A person commits murder when he or she plans to kill someone, but when a person is killed while doing wrong, such as a man having sex with another man’s wife, or a thief breaking into someone’s house, that person wasn’t murdered, that person was killed. Murder is intentional unjustified homicide.
Anyone that is killed for doing wrong isn’t murder, if someone intends to do something wrong and that person is killed for his or her crime, that isn’t murder, that is justice.
God uses people to kill, but those who God uses to commit murder are led by the flesh, no one led by the Spirit will commit murder, a person led by the Spirit might kill someone, but never commit murder, the New Testament makes it very clear that those who commit murder are led by the flesh, no one led by the flesh belongs to God.
Proverbs 16:9 The mind of man plans his way, but God determines his steps.
Galatians 5:19 Now the works of the flesh are manifest, which are these; Adultery, fornication, uncleanness, lasciviousness,
:20 Idolatry, witchcraft, hatred, variance, emulations, wrath, strife, seditions, heresies,
:21 Envyings, murders, drunkenness, revellings, and such like: of the which I tell you before, as I have also told you in time past, that they which do such things shall not inherit the kingdom of God.