Vic premier's department secretary resigns