An earthquake with a magnitude of 5.1 on the Richter scale shook Monday the city of Bam in south-eastern Iran, the news agency ISNA reported.