Parshat אחרי מות also has the Mitzva of וחי בהם, that we are to live by the Mitzvot and not die by them. This is the source for פיקוח נפש taking precedence over Shabbat laws.
The Rambam discusses situations where one must be prepared to give his life על קידוש ה׳, sanctifying the name of G-d.
People who give their lives only because they are Jewish, have sanctified Hashem on the highest level, as did Lori Gilbert-Kaye, in San Diego.
However, the Rambam also mentions that if one could have avoided a situation where he would have had to to give his life, by leaving a dangerous place, and doesn’t, has not sanctified G-d’s name.
The Rambam has very harsh words for one who chooses to live under an oppressive king, when he could have lived somewhere else.
I am not minimizing the tragedies of Pittsburgh and now, San Diego. It just seems that it is obvious that Hashem is telling his children to come home to Israel. They need to wake up and hear the call. Enough mourning and sadness. Time for all Jews to come home!