JERUSALEM — After an investigation of more than two years, Israel’s attorney general, Avichai Mandelblit, announced Thursday that he planned to indict Prime Minister Benjamin Netanyahu on charges of bribery, fraud and breach of trust.

Mr. Netanyahu, who denies any wrongdoing and says he is being persecuted by Israel’s left, is entitled to a hearing before an indictment is formally issued.

But if he fails to persuade Mr. Mandelblit to back down, he would become the first sitting prime minister in Israel to face criminal prosecution.