It is not the "right of the state" which would be upheld by the execution of a murderer.
It was the rights of the victim.
State would be acting as proxy defender of said rights.
The murderer didn't violate the rights of the state.
He violated the rights of his victim.
Had the victim had the opportunity to defend his own life with lethal force, he'd have been morally jusitfied in doing so.