A major operation was underway at a Swedish school, which was put on lockdown after an "ongoing violent crime".