Behaviour of a magnetic nanogel in a shear flow