ORCHARD PARK, N.Y. -- Miami Dolphins linebacker Kiko Alonso was ejected in the third quarter of Sunday's 42-17 loss to the Buffalo Bills after being penalized for a late hit on Bills quarterback Josh Allen.

Alonso dove sideways into Allen as the rookie slid at the end of a 9-yard scramble on third-and-9. Alonso's leg hit Allen on his helmet, sparking a scuffle between the two teams.

Dolphins defensive end Robert Quinn and Bills right tackle Jordan Mills were involved in the commotion after the play. Both were penalized for unsportsmanlike conduct and ejected.

Bills running back LeSean McCoy ran for a 9-yard touchdown after the play to give the Bills a 28-14 lead.

Both Allen and Buffalo coach Sean McDermott saw positives in the way their team responded to the dust-up.

"[The scuffle] speaks a lot about who we got and the toughness of the guys in this locker room," Allen said. "... I probably have to get Jordan a little gift or something for that one."

"I don't expect our guys to back down, in particular when it's our quarterback," McDermott said. "I appreciate our guys going in there after our quarterback to get him out of there and keep him safe and healthy."

Neither Alonso nor Quinn spoke to reporters after the game.

It appeared that Alonso tried to hold up on this hit, but he is a repeat offender when it comes to hitting sliding quarterbacks.

In October 2017, Alonso delivered a concussion-inducing late hit on Joe Flacco as the Baltimore Ravens QB was sliding on a scramble.

Alonso, who was fined $9,115 for that hit, later texted Flacco an apology.

Dolphins linebacker Kiko Alonso hit the showers early following his second-half ejection in the Dolphins' Week 17 loss to the Bills. Rich Barnes/USA TODAY Sports

In the second quarter of a 27-24 loss to the Indianapolis Colts last month, Alonso got a roughing the passer penalty for hitting a sliding Andrew Luck during a scramble. After that game, Alonso said it was similar to the Flacco hit and he tried to pull back.

"There was nothing I could do," Alonso said of the Luck hit. "I fell to him. Right when I felt him slide, I kind of felt like I gave myself up, too. At the end of the day, I don't think there was anything I could do about it. Maybe I can watch the film and see. From that play, I remember feeling like there was nothing I can do."

ESPN's Mike Rodak and Cameron Wolfe contributed to this report.