PHILADELPHIA — As police in Philadelphia struggle to stop a scourge of shootings, some New Jersey engineers say they are closing in on a "smart" solution: a gun that can be fired only by its owner.