Images are unavailable offline.

Police officers investigate after a bow-and-arrow attack in Kongsberg, Norway, on Oct. 13, 2021.

NTB/Reuters

A man charged with killing five people and wounding four others in southern Norway when he attacked strangers with a bow and arrows and knives pleaded guilty Wednesday to murder and attempted murder.

“I admit criminal guilt for the entire charges,” the suspect, Espen Andersen Brthen, 38, said as his trial started at Buskerud District Court, according to Norwegian news agency NTB.

The five victims were fatally stabbed on Oct. 13, 2021. Andersen Brthen also faces 11 counts of attempted murder for allegedly shooting at people with a bow and arrows in Kongsberg, a former mining town of 26,000 people.

Story continues below advertisement

He further is accused of causing bodily harm, threatening behavior, refusing to obey police orders and tossing knives at officers.

The attacks started inside a grocery store. Andersen Brthen was arrested more than half an hour after he allegedly started firing arrows inside the store and attacking people inside their homes.

He listened quietly as the charges were read out loud Wednesday. Although he has confessed, he may not end up in a Norwegian prison.

Prosecutors want him sentenced to compulsory mental health care, saying he was in a “strongly deviating state of mind” during last year’s attack, according to charging documents obtained by The Associated Press.

Story continues below advertisement

After his arrest, Andersen Brthen was admitted to a closed psychiatric ward. Three forensic psychiatric experts who assessed him concluded he was probably insane at the time of the killings.

The trial is expected to last a month.

Our Morning Update and Evening Update newsletters are written by Globe editors, giving you a concise summary of the day’s most important headlines. Sign up today.