The UAE has expressed its solidarity with Afghanistan after a 6.3 magnitude earthquake struck Mazar-e Sharif city in the northern region, killing at least 20 people and leaving hundreds injured.