One officer suffered a minor injury attempting to arrest the suspect, police said.
Alan M. Miles, 46, of 167 Rushmore St. in New Cassel, was charged with robbery, assault, menacing, petty larceny, and possession of a dangerous weapon.
Miles was to be arraigned Tuesday in First District Court, Hempstead.
Security guards approached Miles when he exited the Home Depot at 86 Jericho Tpke. at 11:45 a.m. with items concealed under his clothing that he had not purchased, police paid. Miles threatened the guards with a kitchen knife, police said, and went into a backyard on Briarcliff Road, Westbury, where he stole a bicycle.
An officer injured her wrists attempting to stop him from taking off on the bicycle, police said. She was treated and released at a hospital.
Miles was stopped and arrested on Audrey Road in Westbury, police said, and the stolen goods were recovered.