detection of who killed a tagged entity

im creating an rpg game and im looking for ways to detect what player killed a tagged skeleton and reward him with dark_coins(scoreboard)

Continue to help post