The threat of an attack on the U.S. has risen "to a whole other level," FBI director Christopher Wray told congressional leaders.