Good job! Thank you for being alert and getting involved. You did the right thing by just shouting and not really confronting him. You never know what he is going to do.
Don't feel sorry for the thief. He is in the position he is in because he chooses to be there.