The authorities credited the quick action from school staff members, who moved students under pews, with saving lives.