The United States has urged its citizens in Afghanistan to avoid travelling to the Kabul airport for now, citing "potential security threats" near its gates.
The warning, posted on the website of the US Embassy in Afghanistan and tweeted by the State Department in Washington, provided no detail on the nature of the threat.
But conditions outside Hamid Karzai International Airport have been chaotic amid the crush of people hoping to flee the Taliban takeover of the country.
As thousands of Americans and Afghans wait in the airport for flights or gather outside its gates, there have been "sporadic" reports, confirmed by the Pentagon, of Taliban fighters beating and harassing people trying to flee.

"Because of potential security threats outside the gates at the Kabul airport, we are advising US citizens to avoid traveling to the airport and to avoid airport gates at this time unless you receive individual instructions from a US government representative to do so," the US embassy alert said.
17,000 evacuated
Underlining the threat that the White House sees in the unfolding chaos -- and likely also due to concern over a hurricane approaching the US northeast, President Joe Biden cancelled a planned trip home to Delaware today.
Pentagon officials, speaking not long after the warning was issued, declined to offer details of the threat, merely saying they were continuing to process people reaching the airport gates.
Read more: Afghan govt employees blocked from working by Taliban
"There has been no reported change to the current enemy situation in and around the airport at this time," Major General Hank Taylor said.
He said 17,000 people had been evacuated since the operation began on 14 August, with many flown first to Qatar or Kuwait. The total included 2,500 Americans.

In the past 24 hours, Mr Taylor said, six military C-17 planes and 32 charter flights had departed the Kabul airport, carrying 3,800 people.
Mr Taylor said three flights had already reached Dulles International Airport outside Washington, adding that Afghan citizens were being sent on to the Fort Bliss army base in western Texas for processing.
The United States hopes to evacuate a total of 30,000 Americans and Afghan civilians.
Yesterday, the US military sent helicopters to rescue over 150 Americans unable to reach the airport gates, an official said.
That was the first evidence that US forces were willing and able to go beyond the US-secured compound to help people seeking evacuation.
American officials earlier confirmed that evacuation operations from Afghanistan had stalled for about seven hours Friday, because a receiving base in Qatar was overflowing.
Read more: Will the return of the Taliban bring an increase in global terror attacks?
President Biden has promised to help any American in Afghanistan seeking to evacuate, saying: "any American who wants to come home, we will get you home."
But he has admitted that the presence of thousands of US soldiers at the airport does not guarantee safe passage to that vast compound.
Impossible deadline
"It's mathematically impossible" for the US and its allies to evacuate tens of thousands of their Afghan personnel and families by 31 August, EU foreign policy chief Josep Borrell has warned.
Mr Borrell added that "we have complained" to the Americans that their security at Kabul airport was overly strict and hampering attempts by Afghans who worked for the Europeans to enter.
31 August is the deadline the United States had announced for the complete pullout of its forces from Afghanistan, but President Joe Biden has flagged that might be extended if airlifts remain viable.

The US military is currently in control of Kabul's airport and running its air traffic control operations.
"As far as I know, for the moment the Americans haven't said they will stay beyond 31 August, but they might change their thinking," Mr Borrell said.
"They want to evacuate 60,000 people between now and the end of this month. It's mathematically impossible," he said.
Mr Borrell told AFP that, for Europe's evacuation efforts, "the problem is access to the airport. The US checks and security measures are very strong" and were preventing the passage of Afghan staff.
He said Brussels had lodged a complaint with the US, asking for "more flexibility".