I'm a librarian who loves anime, manga, and reading a wide variety of genres.
The stakeout goes wrong because the idiot cop arranged a meetup with his ex-girlfriend during it, in order to make up with her and get back together. The suspect saw the cop and recognized him.
Best time to meet with your ex-girlfriend ever, right? OMG.