I wouldn't worry too much about the death. I don't think it was anything in your tank that caused it's death. It could be that the molt was hard on it--it's not something they always survive. If the dead one was molting, the live one could have picked on it while the shell was still soft, killing it. They aren't always kind to each other during molts.
Shrimp are often shy in bright light--they tend to like hanging out in caves and overhangs.
Shrimp are often shy in bright light--they tend to like hanging out in caves and overhangs.