The wipeout of a loan by BlackRock’s HPS to a telecom entrepreneur points to risks for even the most sophisticated investors in the booming private-credit business.