Thailand's national disaster prevention centre issued a tsunami warning for six southern provinces along the Andaman coast on Wednesday after a huge earthquake struck off the coast of Indonesia.