A former upstate New York prison guard on trial in the death of an inmate repeatedly stomped on the man’s head during a brutal beating by a group of guards, a prosecutor told jurors.