Charlotte, North Carolina (CNN) Police in Charlotte, North Carolina, released video Monday showing an officer opening fire and fatally wounding an armed man after telling him repeatedly to put his gun on the ground in the parking lot of a fast food restaurant.

A judge ordered police to release the video — captured by officer Wende Kerl’s bodycam on March 25 — which prompted the mayor and police chief to say they were bracing for protests hours before the video was made public. Both appealed for calm hours before a crowd gathered for a peaceful rally and vigil in a downtown park…