Nearly 2,000 accidental shootings took place last year. This "smart" gun accessory aims to prevent them.