Iran has protested to the Iraqi authorities, who are responsible for the safety of consular personnel under international law, the ministry said.