The question is this: If that beacon was intended to request help for the prison ship, why would the New Republic attack team attack and destroy that other target? that Din Djarin (aka: Mando) has placed that beacon in the pant's pocket of Qin - the prisoner that Din Djarin helped - and then shortly after the Razor Crest leaves the space station, a small group of X-Wings jump out of hyperspace and just destroy the whole space station not just the source of the homing beacon in the dock. Okay that makes sense considering they are on the prison ship at that point in the story.
A New Republic attack team will hone in on that signal and blow us all to hell.” One of the characters - Mayfeld - states:
In episode 6 of The Mandalorian (“The Prisoner”) we see a homing beacon being used on a New Republic prison ship.