The last member of Afghanistan's Jewish community has left the country following the Taliban takeover.

Zebulon Simentov, who lived in a dilapidated synagogue in Kabul, kept kosher and prayed in Hebrew, endured decades of war as the country's centuries-old Jewish community rapidly dwindled.

But the Taliban takeover last month seems to have been the last straw.

Moti Kahana, an Israeli-American businessman who runs a private security group that organised the evacuation, said the 62-year-old Mr Simentov and 29 of his neighbours, nearly all of them women and children, have been taken to a "neighbouring country".

Mr Kahana said Mr Simentov, who had lived under Taliban rule before, was not worried about them.

But Mr Kahana warned him that he was at risk of being kidnapped or killed by the far more radical so-called Islamic State group.

He said Mr Simentov's neighbours also pressed him to leave, so that their children could join him on the bus out.

Israel's Kan public broadcaster aired footage of the evacuation, showing a bus full of people travelling across what appeared to be Afghanistan, with all the faces blurred except for Mr Simentov's.

They joined an exodus of tens of thousands of Afghans who have fled since the Taliban swept across the country last month.

The US and its allies organised a massive airlift in the closing days of the 20-year-war, but officials acknowledged that up to 200 American citizens, as well as thousands of Afghans who had aided the war effort, were left behind.

Mr Kahana said his group is reaching out to US and Israeli authorities to find a permanent home for Mr Simentov, whose estranged wife and children live in Israel.

For years, Mr Simentov refused to grant his wife a divorce under Jewish law, which could open him up to legal repercussions in Israel.

Mr Kahana said he persuaded him to grant the divorce and has drawn up the paperwork.

"That was two weeks of being a shrink, a psychiatrist, talking to him like 10 times a day, and his neighbour at the same time to translate," Mr Kahana said.

Hebrew manuscripts found in caves in northern Afghanistan indicate a thriving Jewish community existed there at least 1,000 years ago.

In the late 19th century, Afghanistan was home to some 40,000 Jews, many of them Persian Jews who had fled forced conversion in neighbouring Iran.

The community's decline began with an exodus to Israel after its creation in 1948.

Mr Simentov said the last Jewish families left after the 1979 Soviet invasion.

For several years he shared the synagogue building with the country's only other Jew, Isaak Levi, but they despised each other and feuded during the Taliban's previous rule from 1996 to 2001.

At one point, Mr Levi accused Mr Simentov of theft and spying, and Mr Simentov countered by accusing Mr Levi of renting rooms to prostitutes, an allegation he denied, The New York Times reported in 2002.

The Taliban arrested both men and beat them, and they confiscated the synagogue's ancient Torah scroll, which went missing after the Taliban were driven from power in the 2001 US-led invasion.

When his 80-year-old housemate died in 2005, Mr Simentov said he was happy to be rid of him.

Reporters who visited Mr Simentov over the years, and paid the exorbitant fees he charged for interviews, found a portly man fond of whisky, who kept a pet partridge and watched Afghan TV.

He observed Jewish dietary restrictions and ran a kebab shop.

Born in the western city of Herat in 1959, he always insisted Afghanistan was home.

Samir Khan, a neighbour who runs a small grocery store and had known Mr Simentov for the last 10 years, said he disappeared about a week and a half ago.

Mr Khan said he only learned of Mr Simentov's departure when he saw it on social media.

The Taliban, like other Islamic militant groups, are hostile to Israel but tolerated the country's miniscule Jewish community during their previous reign.

Aside from the feud, the only other time they came knocking was when they noticed that Muslim women in all-encompassing burkas could often be seen visiting Mr Levi.

When they briefly arrested Mr Levi, he explained that he had a business selling amulets to women who wanted to become pregnant with sons or who were opposed to their husbands taking other wives, as allowed under Islamic law.

The Taliban released him.