'US will attack Iran if it must'