Alleged Sydney church attacker charged with terror offence