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 local authorities did not provide details about how many people had been injured. However, they confirmed that police officers were carrying out checks inside the school, while several other schools nearby had been placed under lockdown as a precaution.