MANCHESTER — Friday night's 177th graduation of the New Hampshire Police Standards and Training Academy could have ended in a mass shooting if Noah Beaulieu had his way, according to state police.

Beaulieu, 24, whom Laconia police hired and sent to the Academy, encouraged fellow recruits to participate in a suicide pact, according to claims made in an affidavit filed Thursday by New Hampshire State Police. Troopers arrested him Wednesday.