The KT-BRST complex of a degenerate Lagrangian system