Major quake prompts tsunami warning off Indonesia