An Uzbek immigrant accused of killing eight people in New York City on Tuesday appeared to have acted alone, but the Halloween Day attack had all the hallmarks of terrorism, authorities said.