However , Iran signed a $ 700 million contract with Russia in 2005 to purchase 29 low-to-medium altitude surface-to-air missiles , which were delivered the following year and became operational in early 2007 .