San Francisco police confirmed that the dead man had been an officer with the department who was under an investigation.