JERUSALEM — Facebook suspended a chatbot operated by the official account of Prime Minister Benjamin Netanyahu on Thursday for violating hate speech rules after it sent a message saying that Israel’s Arab politicians “want to destroy us all.”

The message, which went out in the name of a Netanyahu campaign volunteer, was trying to rally right-wing support for Mr. Netanyahu and his conservative Likud party in next Tuesday’s election.

Chatbots are software programs that try to emulate human conversation. In this instance, the bot provided a pop-up message to viewers of Mr. Netanyahu’s official Facebook page.

It urged supporters to come out to the polls to prevent the advent of “a dangerous left-wing government,” whose Jewish leaders, it said, would rely on the support of Arab politicians “who want to destroy us all — women, children and men — and enable a nuclear Iran that would wipe us out.”