This has happened a few times to me and I was able to get a screenshot just in time. You can see top-left, there is a row of four blues that should have matched and released two fish before the level ended. Why does this happen?
It seems to be a glitch that is currently being looked into. Hopefully it isn’t happening too often and you are able to try again and complete it. Sorry for the troubles