Taliban fighters with heavy weapons and night-vision equipment fought their way close to the center of the western city of Farah on Tuesday, as Afghan forces with U.S. air support battled to force them back, officials and residents said.

Residents of the city, capital of Farah province on the border with Iran, have warned for months the city was vulnerable and the attack threatened a repeat of the Taliban's capture of the northern city of Kunduz in 2015.

Local people said Taliban forces began their attack at around 2.00 a.m. (2130 GMT Monday) from several directions and a senior official said the situation was serious early in the day as the insurgents overran several areas and the provincial governor left the city.