so this is a problem whith multiple "solutions".
There was the option of "Let it Ride" given in the comments above. I for one like to give ingame reason and flavour as to why they can't kick it open.
They kicked the door and in their kick they felt stern resistance as if the door were barred by something more than a lock. If however queues like that are not working, here are a few ideas and scenarios. Hope they help!
Another technique is to ask why. If a player was investigating a room, yes they may have heard the door being kicked but the character has no idea if it was successful or not. You are essentially calling out the metagaming for all to see. You want the player to argue their metagaming so you can show them how that is metagaming without being overly scornful.
Alternatively, say No. If everyone is all lined and crawling the dungeon when they come across the door, after a check (or 2) you could pipe up and say "Maybe they require some help". It's always nice to have advantage and it builds teamwork. In a game I am a player in, one of the other players always gives the help action with any check being done. I also offer up a guidance Nothing better than 2d20 keep the highest + 1d4 + modifiers.
Or you could describe it by saying "after a few attempts you feel that trying to kick this door in is a fruitless effort and requires an alternative approach"
A Genuine Misunderstanding
Yes, there is the joke that a D&D party's biggest enemy is a locked door but where does it end?
Well you could have someone "answer" the door. A random guard or enemy (if possible) just answers the door. Be that a voice from inside or a peep hole. Maybe this guard believes your players are otehr guards who lost their key or forgot that "This door is broken" and they should "use the other one". Where brute force fails, charisma might win.
A final resort - and pray you never have to do it - is having a discussion about it. If you are unable to influence the behaviour indirectly, then you may have to sit down with the group and say "Hey, all 6 of yous taking a shot at every locked door - horrible for pacing".
Sometimes as a DM you need to have hard conversations - it's not pretty but it has to be done.