Strong tremors from a powerful earthquake damaged homes and triggered a brief tsunami alert in northern Indonesia.