A boy accused of killing four people at his high school in Georgia was interviewed last year by police about anonymous online threats, the FBI has said.
Colt Gray, 14, denied to police in May 2023 he was behind internet posts that contained images of guns, warning of a school shooting.
The suspect opened fire on Wednesday at Apalachee High School in the city of Winder, killing two teachers and two pupils, investigators say. Eight students and one teacher were injured.
He was arrested on campus and will be prosecuted as an adult.
Police have identified the victims as teachers Christina Irimie and Richard Aspinwall and 14-year-old students Mason Schermerhorn and Christian Angulo.
In a news conference, Georgia Bureau of Investigation director Chris Hosey said the gun used was an "AR-platform style weapon".
In a statement, the FBI said its National Threat Operations Center had alerted local law enforcement in May 2023 after receiving anonymous tips about "online threats to commit a school shooting at an unidentified location and time".
The agency said that within 24 hours investigators had determined that the threats originated in Georgia.
Sheriff's deputies interviewed the boy and his father, who "stated he had hunting guns in the house, but the subject did not have unsupervised access to them", the FBI said.
The suspect, who was 13 years old at the time, denied making the online threats and officials "alerted local schools for continued monitoring of the subject".
"At the time, there was no probable cause for an arrest or to take any additional law enforcement action on the local, state or federal levels," added the FBI statement.
Sheriff Jud Smith described the attack as "pure evil" and said officers were on scene within minutes of receiving 911 calls at 10:20 local time (14:20 GMT).
Two officers assigned to the school "immediately encountered the subject", the sheriff said, adding that the boy "immediately surrendered".
The boy has been interviewed and spoke with investigators once while in custody, Sheriff Smith said.
The sheriff added that no motive had been identified and that law enforcement did not know of "any targets at this point".
Students described chaotic scenes as alerts went out that an attacker was on campus. Classes at Apalachee began last month, but many students across the US are returning to schools this week.
Lyela Sayarath, who was in the alleged attacker's class, told CNN that the suspect left the room at the beginning of an algebra lesson.
She said he came back and knocked on the door, which had locked automatically, but another student refused to let him in after noticing he had a gun.
Lyela told CNN the attacker then went to the classroom next door, where he began shooting.
Marques Coleman, 14, said he saw the attacker holding a "big gun" just before the shooting began.
"I got up, I started running, he started shooting like, like 10 times. He shot at least 10 times," he told CBS News, the BBC's US partner.
"My teacher started barricading the door with desks," he said.
After standing up, the pupil said he saw "one of my classmates on the ground bleeding so bad", another girl shot in the leg and a friend shot in the stomach.
A vigil was held on Wednesday evening in the city of 18,000 residents about 50 miles (80km) from Atlanta.
This was the 23rd US school shooting of 2024, according a database maintained by magazine Education Week, which counts 11 dead and 38 injured in such attacks so far this year.
David Riedman, who runs the K-12 School Shooting Database, told Reuters news agency that the shooting in Georgia was the first "planned attack" at a school during this autumn term.
News from BBC NEWS
UPDATED 5 September 2024