There could be a number of reasons for your dog foaming at the mouth. The mostly likely symptom if it is looks well and foamed for a while only is that it eat something wrong or probably licked a frog. You need to observe it some time. If the cause of foaming was only consuming some wrong thing, there is nothing to worry about. It could also be a symptom of rabies if it continues and is accompanied with change in its behavior. In this case, you need to take him to the vet immediately.
Since you mentioned that it only foamed for 10 minutes and that too after a walk, it could be a sign of being worked up, as foaming is also caused when the dog is extra worked up. This foam is just excessive saliva and there is nothing to worry about it. However, if it continues or there is any vomiting or lathery, you must take it to the vet on urgent basis.
Since you mentioned that it only foamed for 10 minutes and that too after a walk, it could be a sign of being worked up, as foaming is also caused when the dog is extra worked up. This foam is just excessive saliva and there is nothing to worry about it. However, if it continues or there is any vomiting or lathery, you must take it to the vet on urgent basis.