Carlow hold on for crucial victory over 13-man Louth