Student accused of bringing weapon to school