The UN and partners have rushed to support Afghanistan following a devastating earthquake that hit two provinces in the east of the country early on Wednesday morning.