If the catcher catches it before it hits the ground—it’s strike three.
If it hits the ground—foul ball.
You’re right, had to be a foul tip that hit the ground before the catcher caught it.
Umps usually go by sound on a foul tip. Did the home plate ump make the call himself or did he ask for help from one of the other umpires?