Sounds like the puzzle featured the move "en passant." It is a legal chess move, but many beginners don't know about these "special moves" and assume it is a bug/glitch. It isn't. Chess has 3 "special moves." En passant is the only move in chess where the capturing lands on a different square than the captured; Castling is the only move in chess where two pieces move in one ply (ply is the term for one side's "move" so the first move of a chess game might be 1. e4 e5, but the first ply is 1. e4 and the second ply of the game is the other player playing 1...e5); Promotion is the last special move and the only move in chess in which the it can "transform" (promote) into a different piece).
https://www.chess.com/learn-how-to-play-chess
The move en passant is explained under the third section "Discover the Special Rules"
Playing my 3 allotted puzzles this morning. On one of them the "solution" required moving my pawn diagonally to an empty space to allow my queen to checkmate. I'm no chess expert but I'm pretty sure this is not a legal move. Are the puzzles being written by AI? (garbage in, garbage out). Even the analysis of the puzzle showed this to be the correct move. Unfortunately I could not find a way to identify this particular puzzle by name or number to report it to you.