A newly discovered accreting pulsar in Terzan 5