Dodge the fire bending. Run left to right, then right to left. Continue until you see a flashing light. Attack when you see it. Hit it with Aang. You will have Saka fighting with you to do double damage. After about a quarter way down on HP, the machine will start throwing fire around. It causes no real threat as long as you keep your distance.