A powerful earthquake of magnitude 6.1 that rocked eastern Afghanistan has killed at least 250 people.