The quake shook buildings throughout the capital for several seconds.
R.S. Dattatreya, the director of seismology for the meteorology department, said the quake was of magnitude 4.2.
"It was a slight event, there is no need for panic," he told the CNN-IBN news channel.
Massive 7.3 magnitude earthquake hits coast of Peru