Khamenei advisor says Tehran ready to confront any foreign threat