Correct me if I'm wrong, but it seems that this is an extreme mischaracterization that is fueled primarily by the interests of US military imperialism. From what I understand as a history student, the Afghans had a revolution on their own which sought to transition to socialism in the country and because of an internal political dispute, the Soviet army was requested to come in to maintain stability to which the Soviet Union obliged. During the time of Soviet military presence, the country continued in a progressive direction with special emphasis on women's equality, increased secularism, and making Afghanistan generally similar to the central Asian countries of the USSR. This was done by the Afghan intelligentsia themselves with the assistance of Soviet colleagues with the Soviet military playing the main role of defending the new state against extreme reactionary radicals funded by the USA (taliban, al quaeda, etc.). This isn't to say that this period was an entirely positive experience in the various dimensions of it, but from how you've phrased it it seems like you're saying that everything was fine until Russia got involved, which is at best a gross oversimplification.