A gunshot detection system that has cost Chicago tens of millions of dollars and is touted as a critical component of the police department’s effort to combat gun violence rarely produces evidence of gun-related crime in the city, Chicago’s nonpartisan watchdog agency concluded.