The attack took place in the southwestern town of Trollhattan at a school for children aged between six and 15.
"One teacher has died at the scene," local health officials said, indicating that another teacher and two boys, aged 11 and 15, were also wounded in the assault.
It was not immediately clear how badly they were hurt.
Police said they shot the assailant at the scene but did not immediately confirm his condition. The man, who was reportedly in his 20s, was taken to hospital for treatment.
Media reports said the assailant was wearing a Star Wars mask, and school children initially thought it was a prank.
"When we first saw him, we thought it was a joke. He was wearing a mask and black clothes and (carrying) a long sword. Some students wanted to take their picture with him and feel the sword," one unidentified student told news agency TT.
When the man started attacking people, he quickly realised it wasn't a joke and fled as the assailant went from classroom to classroom looking for victims.
Police said there was "a lot of confusion" at the school, saying there were still pupils and teachers inside more than two hours after the attack.
According to its website, the Kronan school has around 400 pupils, including many newly-arrived immigrants.
Swedish media described it as a "problem school".
It had been criticised by the Swedish Schools Inspectorate for its lax security and on account of a number of disruptions which prevented the pupils from learning.
Teachers had complained to the inspectorate about the school library and cafe being open to the public and creating an insecure environment for the children, TT reported.
You’ve reached your limit of {{free_limit}} free articles this month.
Subscribe now for unlimited access.
Already subscribed? Log in
Subscribe to read the full story →
Smart Quarterly
₹900
3 Months
₹300/Month
Smart Essential
₹2,700
1 Year
₹225/Month
Super Saver
₹3,900
2 Years
₹162/Month
Renews automatically, cancel anytime
Here’s what’s included in our digital subscription plans
Exclusive premium stories online
Over 30 premium stories daily, handpicked by our editors


Complimentary Access to The New York Times
News, Games, Cooking, Audio, Wirecutter & The Athletic
Business Standard Epaper
Digital replica of our daily newspaper — with options to read, save, and share


Curated Newsletters
Insights on markets, finance, politics, tech, and more delivered to your inbox
Market Analysis & Investment Insights
In-depth market analysis & insights with access to The Smart Investor


Archives
Repository of articles and publications dating back to 1997
Ad-free Reading
Uninterrupted reading experience with no advertisements


Seamless Access Across All Devices
Access Business Standard across devices — mobile, tablet, or PC, via web or app
