A white former South Carolina police officer charged with murder in the shooting death of a black motorist won’t be released before his trial.

Circuit judge Clifton Newman on Monday denied bond for Michael Slager. In a brief order, he said releasing Slager would “constitute an unreasonable danger to the community”.

The former North Charleston officer has been held in solitary confinement since his arrest on murder charges in the 4 April shooting death of Walter Scott.

A bystander’s cellphone video showed Slager firing eight times as Scott tried to run from a traffic stop. The incident inflamed the national debate about how black people are treated by law officers.

Prosecution and defense attorneys sparred over the bond question during a hearing Thursday and met again to discuss the case Friday.

“After careful consideration of all the evidence presented and the nature and the circumstances of the offense, the court finds that the release of (the) defendant would constitute an unreasonable danger to the community and the request for release on bond should be denied,” the order said.

Prosecutor Scarlett Wilson on Thursday had called Slager “a firing squad and executioner” and said he planted evidence, taking his Taser from where it fell and dropping it near Scott’s body hundreds of feet away.

Slager’s attorneys argued that their client posed no threat to the public, filing 150 pages of documents ahead of the hearing. The documents included a toxicology report showing there was cocaine in Scott’s blood when he was killed, as well as a psychological assessment that Slager poses little future danger of committing violence.

The Associated Press left messages with both the prosecutor and Slager’s defense attorney seeking comment.