The United States and Iran exchanged fire across the Middle East on Wednesday, as officials in both nations called into question diplomatic efforts to stop the war.