A pupil and a teacher at school in Sweden are killed after a masked man with a sword entered the building.