The Rhode Islander, 25, was arrested after technology that helps Boston police detect gunfire drew officers to a Dorchester death scene, police said.