An attempted firebombing at a Sydney synagogue was “not driven by ideology”, the state’s second-top cop has revealed.