Constable snatches pistol from naxalites during attack