Updated

A former Maryland college student who told authorities he killed a man and ate his heart and parts of his brain has pleaded guilty but not criminally responsible to murder.

Alex Kinyua entered the plea Monday morning in Harford County Circuit Court to first-degree murder in the 2012 death of a 37-year-old man from Ghana who was staying with Kinyua's family. The 22-year-old has been committed to the health department.

Judge Stephen Waldron said that he had concerns about accepting the plea, but that he had to accept psychiatrists' determinations that Kinyua could not be held criminally responsible.

Authorities say Kinyua ranted about "human sacrifices" on Facebook before the slaying.

In a separate case, Kinyua pleaded guilty but not criminally responsible in a baseball bat attack at Morgan State University.