Nassau Police arrested two men Saturday night at a Valley Stream Walmart, including one who attempted to record the other man’s arrest on his cellphone.

Fourth Squad detectives said Kirk D. McRae Jr., 31, of Brooklyn, was arrested after two female customers waiting in line at the store complained that he waved a 4-inch razor knife in the air after an argument with the two.

According to police, McRae resisted arrest, struggling with officers and ripping off an officer’s baton and baton holder from his belt.

Police said McRae also bit one of the officers in his forearm while being transferred in a police cruiser to the precinct to be processed.

Police officials said they also arrested Shane Marco Bingham, 20, of Queens Village, who recorded McRae’s arrest outside the Walmart.

Officers asked Bingham to step back, and as he did “a six-inch gravity knife with a red handle was sticking partially out of his rear pants pocket.”

advertisement | advertise on newsday

When officers told Bingham he was under arrest for carrying the knife, he resisted arrest, “swinging his arms violently and kicking his legs to get away from officers, police said. Officers sustained minor injuries, police said.

McRae is charged with second degree menacing, fourth degree criminal mischief, fourth degree possession of a dangerous weapon, second degree obstructing governmental administration and resisting arrest.

Bingham is charged with two counts of second degree assault, third degree criminal mischief, fourth degree criminal possession of a weapon and resisting arrest.