IsDB agrees $500m loan for TAPI gas pipeline work