"The attack on Yawar's (Masoodi) residence is evidence of the continued risk associated with being a mainstream politician in Kashmir," he wrote on micro-blogging site Twitter.
"You may not like our politics sometimes but don't question our commitment because we put our lives on the line every day for our beliefs," Omar added.
He offered condolences to the family of two police personnel, who were killed by the militants in the attack.
Both the militants involved in the attack on the house of NC youth leader were killed in an encounter after security forces chased them down.
More From This Section
Meanwhile, opposition PDP president Mehbooba Mufti condemned the attack saying bloodshed will not solve any problem but lead to more tragedies only.
"There is no place for violence in politics and it is against all tenants of decency and political conduct. These unfortunate incidents only result into tragedies and will not yield anything," she said in a statement.
The PDP president paid tributes to the policemen "who protected Yawar at the cost of their own lives", saying "it is a matter of relief that Yawar had escaped unhurt".