Several suspects have been arrested in connection with the attack and investigations are ongoing, the statement said.
In a statement released on Friday (November 22), the Taliban's police command in Baghlan called the incident a "mysterious" attack.
The victims worked during the day and came to the monastery at night to worship, the statement said.
On Friday morning, sources reported to Afghanistan International that gunmen opened fire on a "circle of Sufis" in a monastery in Nahrin district.
According to information received by Afghanistan International, the victims of the attack were Sufis.
At the same time, pictures have reached Afghanistan International showing the funeral ceremonies of the victims of the deadly Baghlan attack.