A man fatally shot two prominent hard-line judges in Iran’s capital Saturday, officials said, both of whom allegedly took part in the mass execution of dissidents in 1988.