NYC head of hate crimes prevention unit fired, plans to file