Two men who approached a police officer stopped at a red light on the West Side and shot at him as he drove away have been charged with using a weapon in an aggravated assault on a police officer, according to police.