Security forces arrested two Palestinians on Tuesday after they were caught with three pipe bombs at the entrance to the Samaria Military Court in the northern West Bank, police said.
The youths were also said to be in possession of a bag containing a gas canister.
Border police said that sappers were working to defuse the devices, and that the entrance to the court remained closed.
Police later clarified that one of the three pipes contained explosive materials and that the canister was empty.
The two youngsters, aged 14, were from the West Bank city of Jenin.
The incident is the latest in a string of foiled attacks on the military facility, many of them involving pipe bombs.
Most recently, on March 11, security forces foiled an attempt to smuggle two pipe bombs into the court when two Palestinians, both 16-year-old residents of Jenin, were detained by Border Police guards at the security checkpoint at the entrance to the court.