The militants fired at the security forces guarding the residence of Roads and Buildings Minister Abdul Rehman Veeri in his native Veeri village in Bijbehara area of Anantnag, a police official said.
The minister was not in the house at the time of the attack as he stays in the official accommodation in Srinagar.
The official said the security forces on duty there retaliated, forcing the militants to flee.
There was no damage, the official said.