ISTANBUL — Two devastating explosions struck Saturday morning in the heart of Ankara, the Turkish capital, killing at least 95 people who had gathered for a peace rally and heightening tensions just three weeks before snap parliamentary elections.

The blasts, which officials called the deadliest terrorist attack in modern Turkey’s history, occurred near Ankara’s main train station just as Kurds and leftists planned to march to protest the recent resumption of armed conflict between the Turkish state and Kurdish militants.

It is a conflict that has been waged for nearly three decades, but in recent times the two sides had seemed to be on the path to peace. The prime minister’s office said late Saturday that 246 people were wounded in addition to those who had been killed.