There's nothing wrong with going long on duration, it's a hedge against decreasing rates. The problem is when you go all-in on long duration investments and rates suddenly shoot up like they did, you now can't sell those assets without eating a massive loss.
An appropriate hedge would have been doing what every retail bond trader does, build a ladder. If they had simply bought a wider variety of say 1/2/5/10 year securities then they could have let the longer-dated ones sit and sell the shorter duration ones (and they wouldn't have suffered such a huge loss of market value that spooked depositors and started the run in the first place).
If you want to standardly hedge against interest rate risk, that's what swaps are for. If you want to take on a comparatively less rate-sensitive portfolio, then you buy shorter-dated bonds. They yield less, but surely that's better than "the FDIC seizes your bank and your equity goes to zero."
For the individual banker, perhaps it's not? If rates stay low they get a fat bonus, if they go up they just get a new job somewhere else.
Here is a primer: https://www.pimco.com/gbl/en/resources/education/understandi...
This is another (PDF): https://www.treasurer.ca.gov/cdiac/publications/math.pdf