A powerful earthquake rocked the Indonesian island of Sulawesi on Friday, triggering a three-metre-tall tsunami that an official said swept away houses in at least two cities.