Magnetic field dependence of the domain wall resistance in a quantum wire