Taliban fighters attacked troops assembled to prepare an attack in Bala Buluk district in the night, setting off a fierce battle, officials said.
Defence Ministry spokesman Dawlat Waziri said four members of the special forces had been killed and a number wounded, but the head of the local provincial council, Farid Bakhtawar, said the death toll had reached at least 18.
As the fighting went on, an air strike was called in and killed around 25 insurgents, he said.
In a message posted on Twitter, a Taliban spokesman said 53 commandos had been killed or wounded after arriving in Tapa Sadat, close to the Bala Buluk district centre, and a sizeable quantity of weapons seized.
This week's incident was the latest in a series to have hit Farah province, between the border with Iran and the Taliban heartland of Helmand province, source of much of Afghanistan's opium crop.
It came ahead of an expected increase in fighting with the end of winter and the approach of spring.
(Except for the headline, this story has not been edited by NDTV staff and is published from a syndicated feed.)
Get Breaking news, live coverage, and Latest News from India and around the world on NDTV.com. Catch all the Live TV action on NDTV 24x7 and NDTV India. Like us on Facebook or follow us on Twitter and Instagram for latest news and live news updates.