Spin polaron in a magnetic field