A strong earthquake has struck southern Greece, shaking buildings over an area from the southern Peloponnese region to the capital, Athens.