KABUL (Reuters) - U.S. Secretary of State Mike Pompeo, on a surprise visit to Afghanistan on Monday, promised support for President Ashraf Ghani’s bid to start peace talks with the Taliban and repeated the United States would be willing to take part.

The visit, at the end of a tour of Asian countries including North Korea and Vietnam, was Pompeo’s first to Afghanistan since he became Secretary of State in April.

He said the strategy announced last year by President Donald Trump of sending more troops to increase pressure on the Taliban and push them toward negotiations was working, and would reassure Afghans “that we will support them as they continue fighting to liberate their country and their people.”

“The strategy sends a clear message to the Taliban that they cannot wait us out,” he said.

Pompeo’s visit follows one by the State Department’s top diplomat for South and Central Asia, Alice Wells, who said this month that pressure was building on the Taliban to respond to Ghani’s offer for peace talks.

Standing with him at a news conference in the presidential palace in Kabul, Ghani, who earlier this year offered peace talks without preconditions, said it would be necessary to move with caution.

“If we think only in one day a 40 year-crisis can be ended we are being unrealistic,” he said.

Slideshow ( 10 images )

Following a three-day ceasefire during last month’s Eid holiday, the Taliban, fighting to restore their version of strict Islamic law, have so far rejected Ghani’s offer of talks, demanding the withdrawal of international troops from Afghanistan.

However, Pompeo repeated an offer for the United States to take part directly in talks with the Taliban. They have rejected negotiations with what they consider an illegitimate Western-backed government in Kabul and demanded direct talks with Washington.

Pompeo said the peace process would be Afghan-led but added that the United States would be prepared to participate to help resolve differences and said support from neighboring countries would also be needed.

“An American role will be important in this, but we can’t run the peace talks, we can’t settle this from the outside,” he said.

As well as the battle against the Taliban and Islamic State fighters operating from Afghanistan, Pompeo discussed plans for October elections in the country and presidential elections due early next year, amid tensions between powerful regional leaders and Ghani.

Pompeo said he hoped for a reduction in violence before the elections, which the Taliban have refused to support. “We’re counting on all the actors in the region to be supportive of that,” he said.