Two dead, buildings damaged by Indonesia earthquake