A spokesperson for the Iranian government has issued a shocking warning that his country will arm itself "to the extent necessary" amid tensions with Israel.