Spin-flip scattering of a half spin particle by a magnetic impurity in one dimension