Most cases occurred in crowded places, city’s security chief tells lawmakers, saying regulating devices would undermine legitimate uses.