Two Brooklyn men were arrested in an incident Friday that started with shoplifting and ended with one of men kicking a police officer and being pepper-sprayed, authorities said. Tyshawn Kennedy, 31, was charged with aggravated assault on a law enforcement officer, criminal mischief, obstructing a government function and resisting arrest; and Frankie Markez, 36, was charged with aggravated assault and possession of an imitation firearm, Bayonne Capt. Eric Amato said. They were taken into custody at 11:31 in the area of Bayonne Crossing Way. Police responded Friday night to the Walmart on a repo…