At a time when the American military is consumed with operations in Iraq and Afghanistan , global terrorism and the threat of nuclear proliferation in North Korea and Iran , China is presenting a new and strategically different security concern to America , as well as to Japan and Taiwan , in the western Pacific , Pentagon and military officials say .