MHD simulations of ram pressure stripping of a disk galaxy