Dynamics of a Light Pulse Interacting with Nanosized Objects