Pandu Sjahrir unexpectedly resigned as chief investment officer of Indonesia’s $631 billion Danantara wealth fund, injecting fresh uncertainty into an institution that plays an outsized role in Southeast Asia’s largest economy.