The two issues cannot be split. Murdering this "doctor", while he was in church and posed no immediate danger to others, was wrong.
Let’s put aside the legal issue. Are you glad he is gone?