At the end of Jesus’ “Parable of the Wedding Feast,” Jesus says:
“But when the king* heard about it, he was furious. And he sent out his armies, destroyed those murderers, and burned up their city. –Matthew 22:7
There is a difference between killing and murder.
There is such a thing as a just killing.
Every killing God did in the Bible was just.
One of the things Jesus says in this parable is that those who commit murder are deserving of execution by the state.