The masked attacker who killed a teacher and a student at a school in Sweden had "racist motives", police believe.…