Cuba’s state electricity company said the blackouts were caused by a “complete shutdown of the national grid.”