NEW DELHI—Gunmen attacked an Indian air force base near the border with Pakistan on Saturday, leaving at least six dead and posing a challenge to recent reconciliation efforts between the long-estranged neighbors.

At least one member of the Indian security forces and five attackers died in the assault in the northern state of Punjab, Indian...