One of the Bondi Beach gunmen was investigated over suspected ties to an Islamic State terror cell six years ago.