The state with the richest population may not have enough money in its own pockets.

Connecticut has roughly half of what it needs to pay future retirement benefits for its workers, meaning the home to scores of hedge funds and some of the country’s wealthiest towns is wrestling with financial distress rivaling that of Kentucky or Illinois.

Some...