If hiruzen had countered the statue's attacks with the elements it's attacks were weak against, the statue would've gone boom.
Example - instead of countering fire with fire, he should've countered fire with water.
Example - instead of countering fire with fire, he should've countered fire with water.