Former Afghan spy chief says letters show Pakistan supports militants