Spy agency ASIO advised NSW Police that accused Bondi terrorist Naveed Akram had been associating with Islamic extremists well before police granted a gun licence to his father and accomplice, Sajid.