But went on for quite a while.
Without knowing the facts is sounds like a serie of compressor stalls which usually means extremely loud explosions and flames from the engine exhaust. If immediate closing of the thrust lever doesn't stop it then you don't stuff around. Best to close down the engine without delay as unknown damage can occur to the engine not necesssarily covered in the QRH. . Hoping the compressor stalls will clear themselves and playing with the throttle to achieve this, comes with its own risks?