A 5.7 magnitude earthquake near Iran's border with Turkmenistan killed two people, injured hundreds and caused widespread damage, state media reported Sunday, citing the country's seismological centre.