NATO leaders agreed Saturday to continue training Afghan security forces through 2017 and finance them through 2020, as the country continues to struggle with violence and instability.

"We see terrorist attacks, we see turmoil and we don't expect this to become easy very soon," NATO Secretary General Jens Stoltenberg said in Warsaw, where the leaders were holding a summit.

Speaking later at a news conference, US President Barack Obama said Afghan forces were much more capable now than when he came into office in 2009, but they still need support "because it's really tough territory and it's a really poor country."

NATO launched its Resolute Support training and advisory mission in Afghanistan last year after ending 13 years of combat operations in the country. Around 13,000 troops from 39 countries are currently taking part in the operation.

Several participating nations had planned to whittle down their presence in Afghanistan this year. But continuing Taliban violence prompted a rethink, especially after the insurgents managed to temporarily overrun the northern provincial capital of Kunduz.

"Our message is clear: Afghanistan does not stand alone and we are committed for the long haul," Stoltenberg said.

"Our aim remains that Afghanistan will never again become a safe haven for terrorists who can pose a threat to our security," leaders from NATO and other Resolute Support partner nations said in a joint statement issued in Warsaw.

Afghan Chief Executive Abdullah Abdullah said his government welcomed the decision to maintain the "current level of support" for Afghan security forces beyond 2016.

Abdullah and Afghan President Ashraf Ghani both attended the Warsaw summit. The Pakistani Foreign Ministry took issue with statements by Ghani at the summit that it described as "hostile," saying that the country is being blamed "for all failures in Afghanistan."

There have been border tensions between the two neighbours recently.

The number of troops participating in Resolute Support next year is expected to stay consistent at around 12,000 soldiers, Stoltenberg said.

Obama announced Wednesday that his country will leave 8,400 troops in Afghanistan into next year, slowing its planned drawdown.

In Warsaw, the US leader defended the need to maintain "a limited partnership" with Afghanistan, saying that the alternative would be "going in, taking out al-Qaeda, pulling out, potentially then seeing a country crumble under the strains of continued terrorist activity or insurgency, and then going back in."

The international community also plays a key role in financing Afghanistan's security apparatus. The country needs about 5 billion dollars a year for its security forces, which number around 350,000.

Afghan troops will continue to be funded through 2020 "at or near" that level, Stoltenberg said. The US provides the lion's share of the financing, with a contribution of 3.45 billion dollars foreseen for next year.

The rest of the international community has pledged more than 800 million dollars annually so far, according to the White House. Stoltenberg said he expected a goal of 1 billion dollars to be met.

The Afghan government also helps fund its security forces. Last year, it contributed 421 million dollars, according to the White House. The goal is for the country to assume the full financial responsibility for its security sector by 2024.

In exchange for its support, the international community called on the Afghan government Saturday to do more on reforms and issues such as tackling corruption.

"There is a close connection between our support and our expectation that they will increase their efforts to modernize their own society," Stoltenberg said.

Latest news

Syrian opposition rules out future role for President al-Assad

The Syrian opposition said Friday it would not accept any role for President Bashar al-Assad in the future of the war-torn country, reacting to a recent US shift saying that removing al-Assad is no longer a priority for Washington.

Russian Army integrates breakaway forces of Georgian province

Parts of the small fighting forces of the Georgian breakaway province of South Ossetia have been placed under Russian military control, Russian Defence Minister Sergei Shoigu said on Friday.

Czech Republic's Pilsner Urquell beer is now Japanese

Japanese brewing company Asahi completed its takeover of the Czech brewery Pilsner Urquell on Friday, Asahi said in a statement.

Judge approves 25-million-dollar settlement of Trump University case

A US district judge on Friday approved a 25-million-dollar settlement of lawsuits and state fraud allegations against Trump University, the US president's now-defunct business venture.

Former Thai premier Thaksin to junta on reconciliation: 'Cut me out'

Former Thai prime minister Thaksin Shinawatra on Friday announced that he is not interested in the junta-led reconciliation process, three days after the junta handed him a half-a-billion-dollar tax bill for his past business deal.

Dalic: We welcome possible deal between Agrokor and banks

The government welcomes the possibility of an agreement being concluded between the Agrokor food company and creditor banks, and the bill on vitally important companies is not a fallback plan but the result of the government's care for the overall economic and financial stability of Croatia, Deputy Prime Minister and Minister of Economy Martina Dalic told a press conference in Zagreb on Friday.

Croatia, China sign action plan for cooperation in agriculture

The Croatian and Chinese ministries of agriculture on Friday signed an action plan for cooperation in the field of agriculture for the period 2017-2018, the Croatian ministry said in a statement.

ZSE indices up, Agrokor shares in focus of investor interest

The Zagreb Stock Exchange (ZSE) indices on Friday rose by more than 1.8%, with stocks of the Agrokor food and retail concern being in the focus of investor interest again.

Berlin police defend handling of Berlin market attacker

Berlin police defended themselves on Friday against accusations that they stopped surveillance on Berlin Christmas market attacker despite knowing in June 2016 he was dangerous.

Croatia, creditors tailor emergency measures to save tottering giant

Croatia's tottering retail and food giant Agrokor reached an agreement with its creditors, putting its debts standby and allowing it to continue working during emergency restructuring, the Croatian branch of Austria's Erste Bank said Friday.

Agrokor's creditors say standstill agreement to go into force today

A standstill agreement regarding the Agrokor concern's existing financial obligations to banks will take effect on Friday, additional capital will be injected into the concern in the coming days and the concern will be actively restructured, which includes a change of its management, it was said on Friday after a meeting between Agrokor's suppliers and creditor banks.

Palestinians, UN slam Israel's new settlement plan

Palestinians, Israeli activists and the UN lambasted the government of Israeli Prime Minister Benjamin Netanyahu on Friday, a day after it gave the go-ahead for the first new West Bank settlement in a quarter of a century.

South Sudan rebels release three abducted foreign oil workers

South Sudanese rebels have released three foreign engineers they abducted in early March in the oil-rich Upper Nile region, Foreign Affairs Ministry official Mawein Makol Arik said on Friday.

Turkish opposition: Imprisoned party chief has gone on hunger strike

The head of Turkey's pro-Kurdish opposition party has launched a hunger strike from prison.

European leagues threaten Champions League schedule clashes

The European Professional Football Leagues (EPFL) on Friday threatened schedule clashes on Champions League matchdays in an ongoing dispute with the governing body UEFA.

Danish court revokes citizenship of IS volunteer

A Danish appellate court on Friday stripped a man of his Danish citizenship for volunteering to fight for the extremist Islamic State in Syria.

Banks and Agrokor agree on key elements of standstill agreement

Member banks of the coordinating committee of financial creditors and representatives of the Agrokor food company have in principle agreed on key elements of a standstill agreement, which is expected to be signed later today, announcing changes in the company's management team, Erste Bank said in a statement on Friday afternoon.

Syrian man on trial in Sweden; mosque attack labelled terrorism

A Syrian man went on trial Friday in the southern Swedish city of Malmo, charged with terrorism and arson after an attack last year on a building used as an assembly hall by Shiite Muslims.