Palestinian militants in the Gaza Strip fired five rockets toward Israel, the military said in the early hours of Wednesday, as its forces withdrew from the Palestinian city of Jenin after carrying out one of their biggest military operations in the occupied West Bank for years.

The rockets from Gaza were intercepted and there were no immediate reports of casualties. Israel said its jets hit an underground weapons manufacturing facility in Gaza in response.

Local media quoted Israeli military spokesperson Daniel Hagari as saying all troops had left Jenin and that the operation was completed. Witnesses in Jenin reported seeing convoys of Israeli military vehicles leaving the city after dark.

Twelve Palestinians, at least five of them fighters, were killed in the operation, which the Israeli army said was aimed at destroying militant infrastructure and weapons in the Jenin refugee camp. As the army began the withdraw, it announced that an Israeli soldier had been killed by live fire in Jenin.

Dozens of people, including civilians, were injured over the course of the raid, according to medics.