A 35-year-old from the village of Beit Ummar carried out the foiled attack, and no soldiers or civilians were injured during the incident.
Hebron, in the West Bank, has a population of some 200,000.
Over the last few months, 115 Palestinians have been killed and another 13,000 wounded in the worst clashes in years.
Earlier this week, a group of doctors said they were preparing to open a 50-bed a surgical unit at the main Gaza hospital in an effort to treat those injured during recent clashes.
The medical teams are part of the International Committee of the Red Cross and will be posted on a six-month assignment to the al-Shifa Hospital.
Surgeons, along with physiotherapists, will work on patients requiring operations and treatment for gunshot wounds. The ICRC is also sending in a large quantity of medicines and specialist equipment.