A large crowd has attended the funeral ceremony for a Turkish prosecutor inside the courthouse in Istanbul where he died on Tuesday.
Mehmet Selim Kiraz and two gunmen who took him hostage were killed in a shootout with security forces.
Also on Wednesday, a man who burst into a district office of Turkey’s ruling AK Party was detained by security forces.
The intruder, said to be armed, entered the building in the Kartal district ordering those inside to leave.
Mr Kiraz had been investigating the case of a teenager who died nine months after being hit on the head by a police tear gas canister during anti-government protests in 2013.
The funeral ceremony at the courthouse was addressed by Justice Minister Kenan Ipek, who called the attack “a gun directed at our nation”.
“We don’t see this as an attack on our deceased prosecutor, but on the whole justice system,” he said, according to Reuters.
His funeral later moved to the city’s Eyup Sultan mosque, where Prime Minister Ahmet Davutoglu and ex-President Abdullah Gul were among the mourners.
The hostage-taking was blamed on a banned Marxist revolutionary group, the DHKP-C. At least 19 members of the group were detained in the southern city of Antalya on Wednesday, but it is not clear if this was connected to the hostage-taking.
Turkish TV broadcast footage of Wednesday morning’s security incident, showing a man flying a Turkish flag with a sword on it from a window of the AKP office.
It was not clear if the attacker was politically motivated.