My bet is that it was caused by the algaecide that he added. Some of those will cause foaming.