FBI: Gunman in terror attack linked to Al Qaeda