Yet because of a bloody counterinsurgency that no one in the military wants to repeat , Iraq has profoundly affected the Pentagon 's deployment strategies as it shifts toward a greater emphasis on the Pacific Rim while still facing a profusion of terrorist-related threats not just in the Middle East but also in Africa and elsewhere . ''