Pul-e-Charkhi prison is a huge facility built in the 1970s where thousands of Afghans opposing communist rule in the 1980s were tortured and killed .