Afghanistan did not "defeat" the USSR as such. They just succeeded in driving them out of Afghanistan (the Afghan terrain played a huge part in that). I'm not saying Israel would succeed in invading Iran, but Iran would definitely not succeed in invading Israel.
FAIR USE NOTICE:
This site may at times contain copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available in our efforts to advance understanding of environmental, political, human rights, economic, democracy, scientific, and social justice issues, etc. We believe this constitutes a 'fair use' of any such copyrighted material as provided for in section 107 of the US Copyright Law. If you wish to use copyrighted material from this site for purposes of your own that go beyond 'fair use', you must obtain permission from the copyright owner.
For more information go to: http://www.law.cornell.edu/uscode/17/107.shtml