An 18-year-old with a sword attacked a school Friday in central Sweden, killing one person and seriously injuring at least two others.