Time-resolved scattering of a single photon by a single atom