Pakistan has agreed to allow Indian diplomats to visit a jailed Indian man who was sentenced to death for spying .