Indonesia's meteorology and geophysics agency issued a tsunami warning after the quake but cancelled it when it became clear there was no danger.