A senior Iranian official has warned that the country will treat any attack "as an all-out war against us" ahead of the arrival of a US aircraft carrier strike group and other assets in the region.