ISTANBUL — Turkish officials accused the United States of abetting a failed coup last summer. When the Russian ambassador to Turkey was assassinated last month, the Turkish press said the United States was behind the attack.

And once again, after a gunman walked into an Istanbul nightclub early on New Year’s Day and killed dozens, the pro-government news media pointed a finger at the United States.

“America Chief Suspect,” one headline blared after the attack. On Twitter, a Turkish lawmaker, referring to the name of the nightclub, wrote: “Whoever the triggerman is, Reina attack is an act of CIA. Period.”

Turkey has been confronted with a cascade of crises that seem to have only accelerated as the Syrian civil war has spilled across the border. But the events have not pushed Turkey closer to its NATO allies. Conversely, they have drifted further apart as the nation lashes out at Washington and moves closer to Moscow, working with the Russian president, Vladimir V. Putin, to secure a cease-fire in Syria.