The victim was identified as 28-year-old Josue Javier Diaz. The officer has not been identified due to the undercover nature of his assignment, police said.

Word of the shooting came about an hour after Charlotte-Mecklenburg police released videos captured on body cameras and dashboard cameras of a shooting last June in which officers said they confronted a suspect wanted in a shooting aboard a city bus. That suspect was shot and killed, and officers were cleared of any wrongdoing.