As the pendulum enters the magnetic field, it notices a change in magnetic flux. The change in magnetic flux induces an electric field, and by Lenz's law the induced electric field will oppose the pendulum's direction of motion. This dampens and stops the pendulum.