An earthquake was felt in Dhaka and various parts of Bangladesh early at 1:23 am on Friday, causing panic among people.