I think it would be a good idea to help him if he's getting frustrated, but write an email to the teacher stating what his difficulty was, and what you did to help. Then you have those emails as documentation.