U.S. senator: Cyberattacks could devastate nation