On Friday, Police Chief Niclas Hallgren told Swedish public service radio said that the man who killed two people at a school in Trollhättan “was driven by racist motives.”

"We are convinced that the assailant was driven by racist motives when he carried out the act," he said. "We have reached this conclusion based on what we found when we searched his apartment and his behavior during the act, and also on the basis of how he selected his victims."

An adult male teacher died at the scene. The second person died while undergoing surgery at 2:30 p.m. local time, DN newspaper cited police as saying.

“A single man went into the school building...and he injured four persons – two male adults and two boys," police media officer Stefan Gustafsson told RT.

The press secretary of NAL hospital, Niklas Claesson, told RT by phone that “two kids (11 and 16 years of age), one teacher and the suspect" were brought in for medical help.

The attacker was shot and injured by police and later succumbed to his wounds at the hospital, Aftonbladet newspaper reported.

”A terrible tragedy”, will take time to investigate, police say. Killed teacher adult man, injured youths are male, no more details.

“We know nothing at all [about the attacker],” he said, adding that the suspect was taken to hospital after being shot by police.

A student at the school told The Local: “I was in a classroom with my class when one of my classmates’ sisters called her to warn her that there was a murderer at the school. So we locked the door to the classroom, but our teacher was still outside in the corridor.

We wanted to warn him, so a few of us went outside and then I saw the murderer, he was wearing a mask and had a sword. Our teacher got stabbed. The murderer started chasing me. I ran into another classroom. If I had not run, I would have been murdered.”

Gustaffson said the incident is now over, and the situation in the town is beginning to calm down. He added, however, that family members are still arriving at the school to check on friends and relatives.

Following the incident, Swedish Teacher's Union president Johanna JaaraAstrand tweeted: “Terrible what happened in Trollhättan! Think of the children, staff and families. All support to them in this unimaginable situation!”