Two-dimensional numerical study of effect of magnetic field on laser-driven Kelvin-Helmholtz instability