“A man or woman who is a medium or spiritist (aka wizard) among you must be put to death.”
Mixed message. Killing a wizard would go against the commandant, “Thou should not murder”.
It’s not a mixed message when God tells you them.
You obviously do not understand the difference between killing (either in self-defense or in the case you cite, by God’s decree) and murder (unwarranted killing).