“Massive failure” by U.S. intelligence led to attacks, senator says