A new study suggests that the bonds that tie a neighborhood together can help shield community members from gun violence.