Residents of several towns in Australia's second-most populous state were ordered to evacuate due to nearby bushfires.