An earthquake shook buildings in the Greek capital on Monday but there were no immediate reports of casualties or damage.