At least 10 people were killed by gunmen in Afghanistan's northern Baghlan province, Interior Ministry Spokesperson Abdul Mateen Qaniee said on Friday.
"A man fired on Sufis taking part in a weekly ritual at a shrine in a remote area of Nahrin district, killing 10 people," the ministry's Abdul Matin Qani said.
A Nahrin resident, who knew victims of the attack, told AFP that worshippers had gathered at the Sayed Pacha Agha shrine on Thursday evening.
They had begun a Sufi chant when "a man shot at the dozen worshippers", he said on condition of anonymity.
"When people arrived for morning prayers, they discovered the bodies," he added.
Attacks regularly target Sufis during rituals or gatherings in Afghanistan, a country with a very large Muslim majority but where the Taliban authorities impose a strict interpretation of Islamic law, or sharia, which is different from Sufism.
In April 2022, 33 people, including children, were killed in an explosion that targeted a Sufi mosque during Friday prayers in Kunduz province.
The number of bomb attacks has fallen since the Taliban authorities returned to power in 2021, but jihadists and the regional branch of the Islamic State group, the Islamic State Khorasan (IS-K), still attack targets they consider heretical.
In September, the IS-K claimed responsibility for an attack in central Afghanistan that killed 14 people who had gathered to welcome pilgrims returning from the holy site of Karbala in Iraq.

Trump touts $5,000 payout if Republicans win as Vance waits in wings
Search expands after Philippine ferry fire kills five and leaves dozens missing
Trump says Iran war to end after US midterm elections
At least 20 killed in cargo vessel fire at China shipyard, state media reports
US military says it struck vessel in Caribbean, killing 3
At least 14 killed in explosion at weapons depot in Syria
US hits five Iranian oil tankers after attack on Navy ships
UK gives air traffic provider a week to probe outage that halted flights
