Dynamic Stark shift induced by a single photon packet.