Notice the wording: 23,000 died in one day, and 24,000 died total. Not all that died of the plague died that day: some died later. There is no contradiction.