Massachusetts detective searched “gunshot residue testing” online 11 days before his wife is shot dead