Afghan officials say five people were killed and six others injured when an earthquake struck near the country 's eastern border with Pakistan .