Former Iranian Consul General Mohammad Reza Heydari says he resigned from his position earlier this month to protest the Iranian government 's use of violence against demonstrators that left at least eight people dead .