The governorate said in a written statement that a bomb setup was used in the explosion that occurred at a tax office in capital's Çukurambar neighbourhood

An explosion at a tax office in the Turkish capital was caused by a bomb - not a gas leak as initially believed, authorities said Friday, adding that the suspected bomber had been killed in a police operation.

The 26-year-old had entered Turkey illegally and received training from a branch of the Syrian Kurdish PYD group, Ankara governor's office said in a statement.

"During the pursuit, one of the suspects, who carried false ID papers, was killed. He was identified as Ersen Ertoğan born in 1991 in the province of Mardin, who was trained in a camp in a YPG-held area in Syria and entered Turkey illegally," the statement said.

It said authorities had also detained eight people suspected of links to the alleged bomber.

The statement added that security footage of the scene showed a male suspect with a bag placing and preparing the bomb setup at the entrance of the building.

The explosion damaged the tax building in the city's Çukurambar district but did not cause any casualties. Authorities initially said they believed it was caused by a gas explosion but did not rule out the possibility of "sabotage."

Two people were slightly injured and underwent medical treatment, local media reported.