The grenade, however, exploded outside injuring two policemen and four civilians, a police officer said.
"The alert SPO threw out the grenade to safer place and saved lives of dozen police, CRPF and civilians in Sopore," a police spokesman said.
According to police, terrorists threw the grenade at a security forces vehicle in the main market near the State Bank of India branch and it entered the vehicle.
"We have registered a case, investigation is underway," SSP Harmeet Singh said.
Soon after the grenade attack, police and paramilitary forces launched a search operation to nab the militants responsible for the grenade attack.
Meanwhile, a terrorist was shot dead in the morning during an encounter with security forces in Jammu and Kashmir's Uri sector. A heavy gunfight started after the Army saw a group of terrorists moving in the forest at Kalgai village near the Line of Control. Two to three terrorists are suspected to be trapped there, Army sources said.
(With inputs from IANS)
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections. Election results will be out on May 23.