A Palestinian teenager was arrested outside a military court on Wednesday when police discovered he was carrying two pipe bombs.
The suspect was caught while attempting to pass the checkpoint outside the military court near Nablus, Israel Police spokeswoman Luba Samri said.
Border Police and military police became suspicious when he claimed he did not have his identity card with him, she said.
They detained him and searched him, discovering two pipe bombs hidden in his clothes.
Military sappers were summoned to the scene and neutralized the bombs.
An initial interrogation found that the suspect, a minor from the Jenin refugee camp in the north of the West Bank, had planned to detonate the bombs inside the courthouse, police said.