Pakistani Foreign Minister Khursheed Kasuri says Islamabad is willing to seal its border with Afghanistan by building a fence to stop militants from infiltrating into Afghan territory .