Sydney teenager who killed police worker ‘had terror links’