He received the punishment of being forced to shoot an apple off the head of his son, Walter, or else both would be executed.
He was punished for being forced to shoot an apple from the head of his son, Walter, or both would be executed.