A teenage boy is facing serious charges after he allegedly planned "acts of violence" at a local school while possessing violent extremist material.