The term, scheduled to end on Friday, has been cut short, and school officials said students could go home immediately.