ISTANBUL — Google was spared on Tuesday from a recent wave of Internet bans in Turkey after it reportedly complied with a court order to remove links to images of Mehmet Selim Kiraz, a prosecutor who died after leftist militants took him hostage at an Istanbul courthouse last week.

Twitter and YouTube were temporarily blocked in Turkey on Monday after they failed to respond to an order to remove photographs and other content showing one of the hostage takers pointing a gun at Mr. Kiraz’s head during the assault.

Senior government officials have criticized the publication of the photographs, branding the images terrorist propaganda and citing the lack of consideration for the victim’s family and friends. News outlets that showed the images were not granted access to cover the prosecutor’s funeral.

People on social media in Turkey, accustomed to similar bans in recent years, easily circumvented the restriction on Twitter by using services to mask their Internet protocol access points, and in a few hours the hashtag #twitterisblockedinturkey became a trending topic.