An explosion inside a coal mine in northern Turkey killed at least 25 people, local officials announced, while rescuers working through the night were trying to bring dozens of others trapped to the surface.

There were 110 miners working in the shaft when the explosion occurred Friday evening at the state-owned TTK Amasra Muessese Mudurlugu mine in the town of Amasra, in the Black Sea coastal province of Bartin.

Energy Minister Fatih Durmaz said rescue efforts continued for 15 people with a majority of them in the mine's gallery where a fire still burned.

Four or five other miners were trapped in cave-ins, Durmaz added. The minister earlier said that preliminary assessments indicated that the explosion was likely caused by firedamp, which is a reference to flammable gases found in coal mines.

Health Minister Fahrettin Koca tweeted that 28 miners were dead and 11 rescued miners were hospitalised in Bartin and Istanbul. Interior Minister Suleyman Soylu said 58 people had been rescued alive.

Ambulances were on standby at the site. Rescue teams were dispatched to the area, including from neighboring provinces, Turkey's disaster management agency, AFAD, said.

"Our hope is that the loss of life does not increase further, that our miners are saved," Erdogan said in a statement. "All our efforts are geared in that direction."

In Turkey's worst mine disaster, a total of 301 people died in 2014 in a fire inside a coal mine in the town of Soma, in western Turkey.