The moon will begin to move in a straight line in the direction in which it was moving at that instant because the circular motion of moon is due to the centripetal force provided by the gravitational force of earth and if gravitational force becomes zero it means no centripetal force is there to help the moon to move in circular orbit. Therefore it will move in a straight line.