Fire is extinguished at N.Y. ethanol plant