A sword-wielding attacker wounded several people at a high school in central Sweden on Friday, authorities said, while media reports indicated that police had shot the suspect.

"An assailant armed with a sword has entered Brinellskolan and wounded several people," the Fagersta municipality said in a statement, adding the assailant had been detained by police.

"Police are continuing to ​work at the scene with a number of ‌different ⁠resources. The public is urged to respect the roadblocks and listen to police instructions."

Local newspaper Aftonbladet reported that a person wielding a machete had been shot in the leg by police.

The suspected perpetrator is in custody.