About 130 Taliban fighters are being trained to work as guards at Afghanistan’s largest prison, which once held as many as 1,500 inmates.