About four to six terrorists came from two sides of the army camp of 13 Rashtriya Rifles and Hajin police station and fired around eight UBGLs towards the army and the police.
"Army retaliated the terrorists' fire and heavy exchanges are now going on in the area," a police officer said.
The army post and the police station are said to be safe.
Hours before the attack, an army vehicle was damaged in an improvised explosive device or IED blast in Sopore, about 40 kilometres away. Terrorists had also tried to snatch weapon from police post in downtown Srinagar.
Election Results for Lok Sabha Election 2019 will be out on May 23. Get the latest election news and live updates on ndtv.com/elections. Catch all the action on NDTV Live. Like us on Facebook or follow us on Twitter and Instagram for news updates from each of the 543 parliamentary seats for the election 2019