Officials from Saudi Arabia, Turkey and Pakistan are meeting in Tehran amid fears of fresh fighting as the US and Israel sharpen their threats before elections.