The original Hebrew translation said to Moses was 'You Shall Not Murder'.
Later the Greeks and then King James translated it as Thou Shall Not Kill. There's a difference...and yes, that man should not have committed murder, just as in many large cities.