A man has been arrested in Sweden on suspicion of terrorism-related crimes after an explosion on Thursday at a school in the south of the country, police said.