Nondestructive Detection of an Optical Photon