More than a million customers in Puerto Rico were without electricity on Thursday after an overnight fire at a main power plant caused the biggest blackout so far this year across the island, forcing it to cancel classes and shutter government offices.