CHICAGO (AP) — A white Chicago police officer accused of fatally shooting a black teenager was charged with murder Tuesday, just a day ahead of a deadline for the city to release a squad-car video of the killing.

The state’s attorney’s office said in a statement that Officer Jason Van Dyke was charged with first degree murder in the killing of 17-year-old Laquan McDonald on Oct. 20, 2014.

City officials and community leaders have been bracing for the release of the video, fearing an outbreak of unrest and demonstrations similar to those that occurred in Baltimore, Ferguson, Missouri and other cities after young black men were slain by police or died in police custody. The judge ordered the dash-cam recording to be released by Wednesday after city officials had argued for months it couldn’t be made public until the conclusion of several investigations.

Several people who have seen the video say it shows the teenager armed with a small knife and walking away from several officers. They say Van Dyke opened fire from about 15 feet and kept shooting after the teen fell to the ground. An autopsy report says McDonald was shot at least twice in his back. It also said PCP, a hallucinogenic drug, was found in the teen’s system.

An attorney for Van Dyke did not respond to messages from the AP seeking comment, but said last week that the officer feared for his life and acted lawfully on the night of the incident.

Chicago police also moved late Monday to discipline a second officer who had shot and killed an unarmed black woman in 2012 in another incident causing tensions between the department and minority communities. Superintendent Garry McCarthy recommended firing Officer Dante Servin for the shooting of 22-year-old Rekia Boyd, saying Servin showed “incredibly poor judgment.” A jury had acquitted Servin of involuntary manslaughter and other charges last April.

Mayor Rahm Emanuel called together a number of community leaders Monday to appeal for help calming the emotions that have built up over the McDonald shooting. Some attendees said city officials waited too long to ask for their involvement.

“You had this tape for a year and you are only talking to us now because you need our help keeping things calm,” one of the ministers, Corey Brooks, said after the meeting.

Ira Acree, who described the meeting with Emanuel as “very tense, very contentious,” said the mayor expressed concerns about the prospect of any demonstrations getting out of control.

Another minister who attended, Jedidiah Brown, said emotions were running so high that there would be no stopping major protests once the video is released.

The fears of unrest stem from longstanding tensions between the Chicago police and minority communities, partly due to the department’s dogged reputation for brutality, particularly involving blacks. Dozens of men, mostly African American, said they were subjected to torture at the hands of a Chicago police squad headed by former commander Jon Burge during the 1970s, ’80s and early ’90s, and many spent years in prison. Burge was eventually convicted of lying about the torture and served 4½ years in prison.

Acree and Hatch said blacks in the city are upset because the officer, though stripped of his police powers, has been assigned to desk duty and not fired.

“They had the opportunity to be a good example and a model across the country on how to improve police and community relations and they missed it,” Acree said.

The Police Department said placing an officer on desk duty after a shooting is standard procedure and that it is prohibited from doing anything more during the investigations.