The NYPD’s beekeepers took a swing at Major League Baseball Monday, when they ripped the league and San Diego Padres for killing a swarm of bees on the field during a game Sunday instead of rescuing them.

The beekeepers posted a number of messages on Twitter Monday night after other users brought the situation to their attention.

“This was not handled humanely. These honeybees were killed by an extermination company instead of having a beekeeper come and remove them,” the NYPD beekeepers wrote from their official Twitter account, with a link to a CBS News story that said the bees had been killed.

“@MLB please have each park have a beekeeper’s number on file for instances like this,” they added.

The account put up several tweets showing how angry they were at the issue, and said: “That’s not a beekeeper and certainly not a bee vacuum that he used to vacuum those bees.”

The CBS News report said that the game between the Miami Marlins and the Padres was delayed for about half an hour after the discovery of the swarm of honeybees attached to a microphone near the Padres’ dugout.

They called an exterminator who sprayed the bees, killing them, and then vacuumed the dead bees off the field.

The NYPD beekeepers, a two-man team who spoke to The Post last week, often take home the swarms of bees they take off of city streets.

The MLB did not immediately return request for comment.