By that clown logic, any hostile forces can freely invade and conquer the United States, because it's universally illegal to kill human beings, including enemies.
You are being disingenuous. A murderous psychopath is a danger to people. This is obvious and something that a five year old child can understand. Some people cross the line and forfeit their lives. The death penalty is absolutely justifiable unless you are a moral relativist, which is a logically inconsistent world view.
By a strict logical interpretation, execution by death penalty is not murder. Dictionary definition of murder:
"the _unlawful_ premeditated killing of one human being by another."