You are pretty much right..."Thou shalt not murder" got changed somewhere to "Thou shalt not kill."
Two different things.
FMCDH(BITS)
King James, when he authorized the KJV translation, insisted that it say “kill” not “murder”. It was a political decision, not, a religious one.
Otherwise, soldiers would be in trouble just for defending their country.