The Islamic State group released a video Thursday threatening Russia over its airstrikes in Syria. Pictured: Smoke rises in the distance behind an Islamic State group flag and banner after Iraqi Kurdish Peshmerga fighters reportedly captured several villages from ISIS jihadists in the district of Daquq, south of the northern Iraqi multi-ethnic city of Kirkuk, Sept. 11, 2015. Marwan Ibrahim/AFP/Getty Images

Nine alleged members of the Islamic State group believed to have been preparing a suicide bomb attack on a political party's offices in Istanbul have been remanded in custody by a court in southeast Turkey, the local governor's office said.

Police detained two of the suspects after a brief car chase in the southeastern Turkish city of Gaziantep Friday, and seven more suspects were detained in subsequent police raids, the Gaziantep governor's office said in a statement dated Tuesday.

"The group members were caught with the vehicles, grenades, explosives and weapons they were going to use in the attack. Bloody attacks aimed at creating an atmosphere of fear and chaos before the parliamentary elections were prevented," it said.

In Sunday's election, the ruling AK Party recovered the parliamentary majority which it lost in a vote five months earlier. Turkey has conducted attacks on ISIS militants in Syria, and President Tayyip Erdogan had said operations against them and Kurdish militants would continue after the vote.

The Gaziantep governor's office said the suspects were planning the attack on unidentified party's offices in Istanbul on the orders of senior ISIS members in Syria.

Turkish prosecutors last week said there was strong evidence that an ISIS cell in Gaziantep carried out a spate of bombings culminating in a double suicide attack that killed more than 100 people in Ankara.