NSW dept sacked manager for helping police