Man who robbed good Samaritan sentenced to state prison