A Controlled Phase Gate Between a Single Atom and an Optical Photon