Rookie NYPD cop attacked with machete on first day