A shallow earthquake of magnitude 5.5 struck near Karakenja in Tajikistan on Friday, the European-Mediterranean Seismological Centre (EMSC) said.