Minst 20 personer har omkommit i den jordbävning som skakade norra Afghanistan under natten till måndag, lokal tid.