A black man suspected of fatally gunning down five middle-aged white men in sneak attacks in Kansas once threatened to shoot up a school and “kill all white people,” according to court records.

A city citation for harassment shows that Fredrick Demond Scott, 22, made the threats in January 2014 at the Center Alternative School in Kansas City, The Kansas City Star reported Wednesday.

“I want to shoot the school up, Columbine-style,” Scott was quoted as saying, according to the report.

Scott was charged with murder Tuesday in the deaths of Steven Gibbons, 57, and John Palmer, 54, and named as a suspect in the killings of three other men, Jackson County Prosecutor Jean Peters Baker announced.

All of the victims, ranging in age from 54 to 67, were shot from behind — and most of the shooting happened along Kansas City walking trails, prosecutors said.

Scott’s mother told The Star that her son suffered from paranoid schizophrenia, but did not show any hatred towards white people.

“As far as I know Fredrick never had a problem with white people,” his mother told the news outlet. “He would do odd jobs for people and some of those people were white men.”

Baker said that there is no known motive in the surprise slayings so far. Scott told investigators he was angry about the stabbing death of his half-brother, who was killed during a robbery in 2015, according to police.

Scott has been jailed in Jackson County on two counts of first-degree murder and two counts of armed criminal action in the deaths of Palmer, who was shot on Aug. 19, 2016 in a wooded area and Gibbons, who was shot in the back of the head along a city street.

The other victims include Mike Darby, 61, who was found dead on May 18 along a trail; David Lenox, 67, who was found slain on Feb. 27, steps away from his front doors while walking one of his dogs; and Timothy S. Rice, 57, who was found killed at a shelter in a park.

Baker said there was not enough evidence at the moment to charge Scott with those deaths.

With Post Wires