Chicago man charged in fatal shooting of detective