A white police officer in Nashville who fatally shot a black man who was running away from him was charged with criminal homicide on Thursday, officials said.

In video of the July 26 shooting, which prosecutors released last month, Officer Andrew Delke of the Metropolitan Nashville Police Department can be seen chasing the man, Daniel Hambrick, and firing several rounds at him from behind.

Mr. Hambrick, 25, was holding a gun at the time of the shooting and was told to drop it, according to an affidavit that was signed Thursday.

The affidavit, filed by an investigator with the district attorney’s office, said Officer Delke, 25, had unsuccessfully tried to stop a white Chevrolet Impala earlier in the day, and later pulled into a parking lot near another white vehicle, which he mistook for the Impala. Several people were in the area, the affidavit said, and when the officer arrived, Mr. Hambrick ran, and Officer Delke chased him, even though he did not know if the man was connected to either vehicle.