A gunman opened fire at a car outside a West Bank settlement on Friday, wounding two Israelis in what police said was a "terror attack."

Police spokesman Micky Rosenfeld said the two men were driving along a dirt road outside the West Bank settlement of Dolev when their car was struck. One man was critically wounded while the other was lightly wounded.

Rosenfeld said the area near the scene of the attack was cordoned off.

"Forces are currently searching the area for suspects. This is being treated at as a terror attack," Rosenfeld said.

Israel saw a wave of so-called "lone wolf" attacks last year by Palestinians using guns, knives and vehicles in Jerusalem, Tel Aviv and the West Bank. Police say it's difficult to stop such attacks because assailants act on their own, without working through established militant groups.

The violence has largely tapered off since last year, but two attacks last month wounded several Israelis, including two paramilitary police officers.