Virginia Tech president says student was gunman in nation's deadliest shooting