At least a dozen people have been killed by wildfires in central Chile, forcing more than 50,000 residents to flee as authorities declare a state of emergency.