Study of interaction of interplanetary shock with the Earth´s magnetosphere using numerical MHD model