The head rabbi of a prominent yeshiva in the West Bank settlement of Yitzhar was arrested Monday for writing a book that allegedly encourages the killing of non-Jews.

Rabbi Yitzhak Shapira is the alleged author of the book "The King's Torah," which deems as legal, according to "Jewish law," the killing of non-Jews.

Police began investigating Shapira after an advertisement for the book in a Hebrew newspaper created a public uproar.

Deputy Attorney General Shai Nitzan encouraged the investigation as he believed the book contained an incitement to violence.

On Monday morning, police detectives arrived at the settlement of Yitzhar, arrested Shapira and confiscated 30 copies of his book.

Shapira is head of a yeshiva (a type of center for Jewish study) which supports replacing the government with a religious monarchy.

Shapira was arrested this past January for his alleged involvement in the torching of a Palestinian mosque in the village of Yasuf, but was later released.