Chiral excitation of a single atom by a quantized single-photon pulse in a guided mode of a nanofiber