Chiles president Gabriel Boric har utlyst undantagstillstånd sedan 20 000 människor tvingats fly sina hem undan rasande skogsbränder.