Cuba’s electrical grid shut down, putting the country into a blackout after the failure of one of the island’s major power plants, according to officials.