I have had something like that happen to an adult Chinese mantis, due to old age. First the tarsus fell off, and over the next couple months, the raptor started turning black, first just at the end and gradually farther up. Eventually, he couldn't bend it anymore. Beyond old age, it sounds like an injury could possibly cause it too.