Stalling
Most prob an instructional flight for stalls and recovery.Close throttle,stick back,stall,stick forward and throttle open.Would give the appearance of what you saw.
Throttling back can cause a backfire ( I've heard it on EFATO) but I wouldn't know why for sure.(I'm sure worrab is correct)
MM