Question

If a person died of accident like train fire , communal riots, re murder etc . Does he/she dies because of their Karma, or they just got trapped in it and the person who rd or murdered someone just trapped that person . Do their loved ones suffer because of their karma?

karma is so complex i cannot make sense right now .