An estimated 1,000 mourners were in attendance, including 400 students from the Danvers school, officials said.d.