An earthquake with a magnitude of 6.5 has struck northeastern Tajikistan on the border with China, with no immediate reports of casualties or damage.