President Trump on Wednesday seemed to rule out the possibility of negotiating some kind of truce with North Korea, just days after his secretary of state suggested that strategy.

"The U.S. has been talking to North Korea, and paying them extortion money, for 25 years. Talking is not the answer!" Trump tweeted Wednesday.

On Sunday, Secretary of State Rex Tillerson said the U.S. would continue to apply peaceful pressure to North Korea, with the goal of starting a dialogue with the rogue regime.

"We're going to continue our peaceful pressure campaign, as I have described it, working with allies, working with China as well, to see if we can bring the regime in Pyongyang to the negotiating table with a view to begin a dialog on a different future for Korean peninsula and North Korea," Tillerson told Fox News on Sunday.

Tensions with North Korea began to rise once again after Pyongyang launched a ballistic missile, which flew over the northern end of Japan, early this week. The Pentagon confirmed the launch Monday evening.

In response to the ballistic missile test, the president said "all options are on the table" for responding.

According to the state media outlet KCNA, North Korean leader Kim Jong Un said he ordered the missile test in response to military exercises between the U.S. and South Korea and as a "meaningful prelude to containing Guam."