A person armed with a sword has wounded multiple people at a school in Fagersta in central Sweden, authorities said Friday.

Police said one person had been taken into custody and there was no longer any danger to the public.

After initially saying three people had been wounded in the attack, two of them severely, police later said an additional person had been killed.

Earlier on Friday, Sweden's healthcare authority said two boys, both aged between 12 and 17, were being treated in hospital.

Police said the suspect was an 18-year-old man. Swedish media reported that police shot the suspect in the leg.