Four gunmen have been killed in an overnight attack on an Indian air force base near Pakistani border, officials say.