An attack at a German high school on Thursday sent one woman to the hospital. Police said they had detained a 21-year-old man.