Scattering of a long cosmic string by a rotating black hole