A blackout has hit northern Puerto Rico after an explosion set off a big fire at a main power substation.