The person who died may have been living a righteous life, but GOD still allowed this to happen.
Well, we are not told if he was righteous. I know from what was written the man killed because God allowed it and because it was allowed, he was provided a safe place to flee. God can only act as just, not unjust. What God allows, we must determine. Does allow mean He willed it, or does allow mean He doesn't intervene? But if that is the case, then why provide a safe place?