A man is behind bars after police say he tried to stab an off-duty officer.

Alan Mays tried to walk off with a 42-inch TV from Walmart in Canton Township, according to police, but an off-duty officer from Novi was in the store at the time and got involved.

Mays allegedly started swinging a knife and cut the officer.

He is charged with armed robbery, assault with intent to commit great bodily harm, possession of a dangerous weapon and resisting arrest.

Mays has already been arraigned, he’ll return to court for a preliminary exam on Nov. 19.