A gunman attempted to attack Jammu and Kashmir National Conference president Farooq Abdullah at a wedding in Jammu, but was quickly overpowered by the security.