Five people have been shot at an adult education centre in central Sweden, police have said.
The conditions of the victims was not immediately clear.
The Swedish news agency TT reported that the perpetrator died by suicide. Police did not immediately confirm that reporting, but the head of the local police told a news conference that the suspected perpetrator was among the five people shot.
The adult education centre is on the outskirts of the city of Orebro, which is located about 200 kilometres (125 miles) west of Stockholm.
The school, called Campus Risbergska, serves students aged 20 and above, according to its website. Primary and upper secondary school courses are offered, as well as Swedish classes for immigrants, vocational training and programmes for people with intellectual disabilities.
The violence broke out on Tuesday after many students had gone home following a national exam.
Police vehicles and ambulances, lights flashing, blanketed the parking lots and streets around the school as a helicopter buzzed overhead.
Teacher Lena Warenmark told SVT News that there were unusually few students on the campus on Tuesday afternoon because many went home after the exam.
She told the broadcaster that she heard probably 10 gunshots.
Students sheltered in nearby buildings and other parts of the school were evacuated following the shooting, which began at around 12.30pm local time (11.30am GMT).
Andreas Sundling, 28, was among those forced to barricade themselves inside the school.
Speaking to Expressen newspaper while sheltering in a classroom, he said: “We heard three bangs and loud screams. Now we’re sitting here waiting to be evacuated from the school. The information we have received is that we should sit and wait.”
Police said that no officers were shot during the violence.
Justice Minister Gunnar Strömmer told TT: “The reports of violence in Orebro are very serious. The police are on site and the operation is in full swing,”
During a news conference on the Swedish employment market, another government official addressed the violence in Orebro, which has a population of around 155,000 people.
“The government is following developments very closely and has a continuous dialogue with the police about this,” Mats Persson, minister for employment and integration, said.