A top Iranian official on Thursday rejected President Trump’s condolences after a pair of terror attacks in Tehran, saying, "Iranian people reject such U.S. claims of friendship.”

Reuters reported that Iran’s foreign minister, Mohammad Javad Zarif, called the White House’s statement “repugnant.”

ISIS claimed responsibility for a pair of stunning attacks Wednesday on Iran's parliament and the tomb of its revolutionary leader, Ayatollah Ruhollah Khomeini, which killed at least 12 people and wounded more than 40.

The White House released a statement from Trump condemning the terrorist attacks in Tehran and offering condolences, but also implying that Iran is itself a sponsor of terrorism.

"We grieve and pray for the innocent victims of the terrorist attacks in Iran, and for the Iranian people, who are going through such challenging times," the statement said. "We underscore that states that sponsor terrorism risk falling victim to the evil they promote."

Iran's powerful Revolutionary Guard indirectly blamed Saudi Arabia for the attacks. A statement issued Wednesday evening stopped short of alleging direct Saudi involvement but called it "meaningful" that the attacks followed Trump's visit to Saudi Arabia, where he strongly asserted Washington's support for Riyadh.

The statement said Saudi Arabia "constantly supports" terrorists including the Islamic State group, adding that the IS claim of responsibility "reveals (Saudi Arabia's) hand in this barbaric action."

The "spilled blood of the innocent will not remain unavenged," the Revolutionary Guard statement said.

The Associated Press contributed to this report