An earthquake, reportedly of magnitude of 5.4, struck southwest of the BMD Seismic Centre, Agargaon, Dhaka, in Bangladesh Friday afternoon.