Asymptotic solution of a problem of detecting a signal from k channels