A 37-year-old Danish man is in custody in Norway suspected of a bow-and-arrow attack in a small town that killed five people and wounded two others, police said.
The man, who was not further identified, has confessed to the attack in Kongsberg, south west of the capital Oslo, prosecutor Ann Iren Svane Matthiassen said, adding that he was questioned overnight.
Several of the victims were in a supermarket, police said.
The man, who lives in Kongsberg, is known to police and has a medical history, Ms Svane Matthiassen told Norwegian broadcaster TV2.
Norwegian news agency NTB cited police as saying the suspect also used other weapons.
There was “a confrontation” between officers and the assailant in connection with the arrest, police said, but gave no details.
Both the wounded victims are in intensive care. They include an off-duty police officer who was inside the store.
The suspect is being held on preliminary charges which is a step short of formal charges. Police believe he acted alone.
Officers were alerted to the attack at around 6.15pm on Wednesday and arrested the suspect about 30 minutes later.
The community of 26,000 inhabitants is about 40 miles south west of Oslo.
Police spokesman Oeyvind Aas said: “We will return to a more detailed description of the course of events when we have a better overview of what happened.
“It goes without saying that this is a very serious and extensive situation, and it naturally affects Kongsberg and those who live here.”
Prime minister-designate Jonas Gahr Stoere, who is expected to take office later on Thursday, called the attack “horrific”.
“This is unreal. But the reality is that five people have been killed, many are injured and many are in shock,” Mr Gahr Stoere told Norwegian broadcaster NRK.
UN secretary-general Antonio Guterres said he was “shocked and saddened by the tragic news coming from Norway”.
Town officials said the main church is open to anyone in need of support.