Accused Albany teacher kills himself