Please read again; I covered the fact that he’s not criminally responsible for “anything”.
He was determined to be insane, hence the consequence of shooting her was the involuntary commitment to a psychiatric hospital. Had he been determined to be sane at the time he shot her, the consequence would have been state prison.