Some hints from Wikipedia's profile of the Afghan official:
Two views exist in regards to Fahim's past, first view holds that Fahim is the son of Abdul Matin from the Panjshir Valley. He is reported to have finished his studies in Islamic Sharia at an Arabic institute in Kabul in 1977. He went to Peshawar, Pakistan in 1978 where upon returning to Afghanistan joined Ahmad Shah Massoud in the Panjshir Valley. With the collapse of the pro-Soviet regime in Kabul in 1992, Fahim was appointed head of KHAD under interim president Sibghatullah Mojaddedi and continued to serve under president Burhanuddin Rabbani. (Bhatia, 2007[2];Brown & Oliver, 2001[3]; also [1][2][3][4][5][6]
The second views holds that, Fahim began his career as a Soviet-trained intelligence officer in the KHAD secret police in the 1970s and 80s, [7] [8] becoming deputy to future president Mohammad Najibullah. Adding that Fahim abandoned Najibullah when his government fell in 1992, and joined the forces of Ahmad Shah Massoud, [9]. In addition, he maintained close ties to Moscow (and also reportedly the Communist Party of Tajikistan)[10]