Ansari, who is PDP candidate from Pattan Assembly seat, was allegedly hit on the head during a clash between two rival groups of Shias at Khandah village this morning, eye-witnesses said.
Commenting on the incident, a police spokesman said there was a minor clash in the village early in the morning but the situation is under control.
Police had imposed restrictions in the village following tension as the Shia community of the area was divided over holding of a traditional ritual.
However, one of the groups supporting the ritual invited Ansari resulting in clashes between the rival groups, the eye-witnesses said.
They said police also intervened and in the scuffle, Ansari was hit on the head and received injuries. A police officer was also injured.