ISTANBUL — Turkey’s president lashed out again at Saudi Arabia over the killing of the Saudi dissident Jamal Khashoggi, and turned up pressure on the kingdom by invoking the NATO alliance as a means to ensure the perpetrators will be punished.

Recep Tayyip Erdogan, in an opinion piece published by The Washington Post on Friday, reiterated his assertion that the order to kill Mr. Khashoggi in the Saudi Consulate in Istanbul came from “the highest levels of the Saudi government.”

At the same time, however, he said he did not believe Saudi King Salman ordered it. That seemed to suggest that he blames Crown Prince Mohammed bin Salman, the kingdom’s de facto ruler.

“No one should dare to commit such acts on the soil of a NATO ally again,” Mr. Erdogan wrote in The Post, which had published columns by Mr. Khashoggi. “The Khashoggi murder was a clear violation and a blatant abuse of the Vienna Convention on Consular Relations. Failure to punish the perpetrators could set a very dangerous precedent.”