The tremor could also be felt in the capital Jakarta where offices were evacuated.