A State of Emergency has been declared in Chile due to a power outage that affected 99% of the country.