The TDS on salary has to be deducted and deposited only after the salary has been paid. If the salary was paid in time but TDS deposited late, there is no way to avoid interest.
Provisions of interest and penalty for late deposition of TDS and late filing of TDS returns have been introduced with a view to discourage such practices which cause undue hardships to the deductees.