yep, Gatordev, you caught me, a broken control system could do it too. But to clear things up, you don't have to have any control system to get a surge cycle. It can be self-induced by an engine that's been pushed too far or by some obstruction (fod that doesn't get ground in to gooseburgers very well).
First something causes the mass flow to be reduced below where it should be operating, and the pressure in the burner overcomes the compressor's ability to... compress (i.e. compressor stall)- so you get severely reduced or even reversed flow through the compressor (aka surge), sometimes resulting in flames coming out the front of the engine. Meanwhile the burner pressure has fallen to some lower amount, so the compressor (still spinning, by the way) recovers its ability to do its job, and it starts building the pressure in the burner, momentarily returning to a sort of "normal" operation. If the original problem is still there or if there are new problems caused by the surge, the cycle will repeat until something changes. If a control system isn't capable of handling this situation or is itself the problem, then that could make it even worse.
You can see the flames stopped popping out of the engine around the time the gear was raised. The pilot probably backed off the throttle, which ended the cycle.