Pakistani man dies while attempting selfie with moving train