ST. FRANCISVILLE — A Louisiana State Penitentiary inmate would be sent to a state hospital for the criminally insane if he were to be released from the life sentence he is now serving, a judge said Thursday.

Prosecutors accepted “not guilty and not guilty by reason of insanity” pleas from inmate Karsten Keelen on three counts of aggravated battery in two attacks on correctional officers.

Keelen, in court Thursday for a hearing on motions stemming from the attack cases, is serving a life sentence for second-degree murder after his April 1996 conviction in the shooting death of 28-year-old Melford Robinson, a few hours after the men got into a fight in Baton Rouge.

Twentieth Judicial District Judge William G. Carmichael told Keelen he would be sent to the state hospital for the criminally insane in Jackson should he be released from prison.

Keelen, 42, was accused of attacking two officers with a prison-made knife in July 2008 and attacking another officer with a razor blade in October 2006.