The 15-year-old had initially intended to kill people but changed his mind and fired three shots at buildings.