A pupil attacked several employees at a school in Oslo on Tuesday, injuring four people, police said.