Answer :
He was shot by the police when he was trying to escape jail (prison)
Tom Robinson, who was accused of something he didn't do, was shot while trying to escape from jail. (He was accused of raping a white woman, which he did not actually do. *Bob Ewell and his daughter accused him.*)