An earthquake rocked eastern Cuba on Sunday, shaking buildings in Santiago de Cuba, the island's second-largest city, and the surrounding countryside.