A hatchet assault on New York rookie police officers was a "terrorist attack" carried out by a self-radicalized, 32-year-old loner who recently converted to Islam, police said Friday.