A man accused of throwing a folding knife at a worker at an Encinitas Home Depot was taken into custody at gunpoint Friday.

The employee, who was watering plants in the store’s outdoor garden area at the time of the 11 a.m. attack, suffered a minor cut to his upper leg, said Sgt. Scott Bligh. An off-duty paramedic who was there provided aid to the man before he was taken to a hospital, where he was treated and released.

Deputies found the suspect inside the store, on El Camino Real near Olivenhain Road, and arrested him at gunpoint. No other details about the arrest were released. The suspect was booked into jail on charges of assault with a deadly weapon.