Pakistan ranked third in global terrorism index