Zahedan is the capital of Sistan-Baluchistan province , which borders Pakistan and Afghanistan .