The New Hampshire man who allegedly killed a Waltham police officer and a National Grid worker when he drove into a utility work site on a busy Waltham street last month was ordered held for 120 days under the state’s dangerousness law Thursday, record show.