Four gunmen and two guards were killed when unidentified militants attacked an Indian Air Force base near the Pakistan border on Saturday in an apparent challenge to attempts to revive a dialogue between the nuclear-armed neighbours.