BEIJING, China—China said on Wednesday that avoiding a return to hostilities in the Middle East was a “top priority” in its diplomatic efforts with countries in the region. Beijing has stepped. China on Wednesday said its joint “mediation” with Pakistan aimed to create a window of talks between the United States and Iran as the armed conflict in the Middle East continues in the fifth week.