Dynamics of a vortex filament in a shear flow