A man has been killed in a horse race at a birthday party that hit the headlines after an invitation went viral on Facebook.