The streets of Havana were dark and empty, with light coming only from the windows of hotels that had generators. Internet service was affected.