A white police officer shot and wounded an off-duty black officer who had been trying to help with an arrest in St. Louis last week, a “friendly fire” shooting that again drew national attention to the role race plays in decisions by law enforcement officials to open fire.