A senior Iranian official has warned countries opposed to Tehran 's nuclear program that they will face retaliation if sanctions are imposed on Iran .