The teenager had developed an "interest" in school shootings and mass casualty events.