US base shooter had 'significant ties' to al-Qaeda