At least some of the blackouts were caused by a fire that broke out inside a Pacific Gas and Electric Co. substation.