A magnitude 5.4 earthquake struck eastern Kashmir around 1:30 pm on Tuesday afternoon, the European Mediterranean Seismological Centre (EMSC) said.