An 18-year-old man who attacked students at a high school with a sword on Friday, killing one, was involved in online communities promoting school violence.

Local officials in Sweden report that an attacker wielding a sword has wounded several people at a school. The suspected perpetrator is in custody.

The man was shot by the police in the leg before he was arrested and detained, authorities said. He remains in police custody.