Ex-NSA chief: Responding to cyberattacks is a government responsibility