Optical Precursor of a Single Photon