Original: Lian tries to attach Aang to the machine, but he battles it instead. During the fight, Katara is struck down, causing Aang to enter the Avatar State and destroys the machine, burying Lian under its rubble, killing her.
Simplified: After that, Aang enter the Avatar State and killed Lian.