A Turkish official says police have overpowered an armed man who stormed the ruling party's local branch in Istanbul, broke a top-floor window and shouted slogans.

Wednesday's incident occurred a day after two members of a banned leftist group held a prosecutor hostage in an Istanbul courthouse, and all three died in a shootout between the hostage-takers and police. It was not clear if the two incidents were related.

Selim Temurci, the Istanbul chief of the ruling Justice and Development Party, told private NTV television that the man raided his party's branch in the Kartal district, forced workers out and shouted slogans against the party. No one was hurt.

Meanwhile, a funeral was being held in Istanbul for prosecutor Mehmet Selim Kiraz who died in the hostage standoff.