The president of the State University of New York at Albany died yesterday afternoon in what apparently was a swimming accident in Hilton Head , S.C. , university and rescue officials said yesterday .