Foreign involvement and aid to the Mujahideen
See also: Operation Cyclone
United States President Jimmy Carter had accepted the view that "Soviet aggression" could not be viewed as an isolated event of limited geographical importance but had to be contested as a potential threat to the Persian Gulf region. The uncertain scope of the final objective of Moscow in its sudden southward plunge made the American stake in an independent Pakistan all the more important.
After the Soviet deployment, Pakistan's military ruler General Muhammad Zia-ul-Haq started accepting financial aid from the Western powers to aid the Mujahideen.[44]. In 1981, following the election of United States President Ronald Reagan, aid for the Mujahideen through Zia's Pakistan significantly increased, mostly due to the efforts of Texas Congressman Charlie Wilson and CIA officer Gust Avrakotos.
http://en.wikipedia.org/wiki/Soviet_war_in_Afghanistan#Foreign_involvement_and_aid_to_the_Mujahideen
The United States, the United Kingdom and Saudi Arabia became major financial contributors, the United States donating "$600 million in aid per year, with a matching amount coming from the Gulf states." The People's Republic of China also sold Type 56 (AKM) assault rifles and Type 69 RPGs
to Mujahideen in co-operation with the CIA, as did Egypt with assault rifles. Of particular significance was the donation of American-made FIM-92 Stinger anti-aircraft missile systems, which increased aircraft losses of the Soviet Air Force.