He remains king.
If the attack is still occurring, those present may defend the general up to lethal force. Afterward, killing the king would be revenge rather than defense.
The king is guilty of murder, but no domestic court has jurisdiction to prosecute, sentence, or depose him. Accomplices...