Panicked Delhi residents have fled from homes and office buildings after a magnitude 4.0 earthquake rocked India’s capital.