He had recently graduated from the Department of Education 's teaching fellow program and had been substitute teaching at Automotive High School in Greenpoint , Brooklyn , while waiting for permanent placement , his friends said . ''