A magnitude 5.9 earthquake struck near the Iranian city of Kermanshah, killing two and wounding 241, the Tasnim news agency reported on Sunday.