U.S. defenses could intercept a ballistic missile launched by North Korea if it decides to strike, the top American military commander in the Pacific said Tuesday, as the relationship between the West and the communist government hit its lowest ebb since the end of the Korean War.

Amid increasingly combative rhetoric from Pyongyang, Adm. Samuel Locklear, commander of U.S. Pacific Command, said North Korea’s pursuit of nuclear weapons and long-range ballistic missiles represents a clear threat to the United States and its allies in the region.

The admiral said Kim Jong Un, the country’s young and still relatively untested new leader, remains unpredictable after using the past year to consolidate his power.

But Locklear told the Senate Armed Services Committee that he was confident the U.S. military can thwart North Korea if it chooses to act. He made clear that any U.S. decision would be contingent on where the missile is headed, information the U.S. could ascertain fairly quickly.

“Do we have the capability to intercept a missile if the North Koreans launch within the next several days?” Sen. John McCain, R-Ariz., asked the admiral.

“We do,” Locklear answered.

He said North Korea is keeping a large percentage of its combat forces along the demilitarized zone with South Korea, a position that allows the North to threaten U.S. and South Korean civilian and military personnel.

Increasingly bellicose rhetoric has come from Pyongyang and its leader, with North Korea urging foreign companies and tourists to leave South Korea and warning that the countries are on the verge of a nuclear war.

At the White House, spokesman Jay Carney brushed off the North’s declaration that nuclear war was imminent as “more unhelpful rhetoric” and part of a pattern of combative statements and behavior that Pyongyang’s leadership has demonstrated for years. He said the U.S. was working with Seoul and Tokyo on the issue.

Senate Armed Services Committee Chairman Carl Levin, D-Mich., told Locklear that the North Korean government’s threats “appear to exceed its capabilities, and its use of what capabilities it has against the U.S. or our allies seems highly unlikely and would be completely contrary to the regime’s primary goal of survival.”

“Nonetheless, its words and actions are not without consequences,” Levin said.

The Democrat questioned the Obama administration’s decision to delay a long-scheduled operational test of an intercontinental ballistic missile amid the North Korea rhetoric.

Locklear said he agreed with the decision to delay the test.

“We have demonstrated to the people of the region, demonstrated to the leadership of North Korea, our ability and willingness to defend our nation, our people, our allies and our forward deployed forces,” Locklear said, citing other steps the U.S. military has taken in recent weeks.

The U.S. has moved two of the Navy’s missile-defense ships closer to the Korean peninsula, and a land-based system is being deployed to the Pacific territory of Guam. The U.S. also called attention to the annual U.S.-South Korean military exercise that included a practice run over South Korea by B-2 stealth bombers.

Levin mentioned that President Barack Obama recently talked to China’s new president, Xi Jinping, about the U.S. efforts to deal with North Korea. Locklear said he has not had similar conversations with his Chinese counterparts.

Reflecting the uneasy relationship, Sen. Lindsey Graham, R-S.C., asked Locklear if he considers China a “friend or a foe.” Locklear said neither.

“I consider (China), at this point in time, someone we have to develop a strategic partnership with to manage competition between two world powers,” Locklear said.