So far the loop remains in the magnetic field, there is no change in magnetic flux linked with the loop and so no current will be induced in it, but when the loop comes out of the magnetic field, the flux linked with it will decrease and so the current will be induced so as to oppose the decrease in magnetic flux, i.e. It will cause magnetic field downwards; so the direction of current will be clockwise.