Police are working to understand what motivated a 17-year-old suspect to attack children at a Taylor Swift-themed dance and yoga class.