A strong earthquake that shook the Iran-Iraq border region killing scores of people, according to authorities and state media in the two countries.