A Farmingville resident didn't take too kindly to his home being burglarized Monday afternoon.

The homeowner stabbed a burglar who was attempting to flee through the backyard of the home on Cedar Oaks Avenue, police said. The homeowner, whom police did not identify, arrived home at about 2:15 p.m. and saw Alex Debono, 20, exiting the window, police said. The homeowner grabbed a knife from his car and "confronted the intruder," who was also armed with a knife, police said.

A struggled ensued between the two men as Debono, of Miller Place, tried to flee and the homeowner stabbed Debono in the leg, police said. Debono was able to escape after he climbed over a fence and fled to the Kmart on North Ocean Avenue, police said.

A Sixth Precinct patrol officer, Daniel Furey, apprehended Debono as he attempted to leave the store, police said. Items stolen from the victim's home, including a watch and an Xbox, were recovered in the store's bathroom, police said. Receive updates to this story and other breaking news in your inbox or smartphone by signing up for our newsletter here

Debono was taken to Stony Brook University Medical Center where he was being treated for non-life-threatening injuries. Debono is charged with first degree burglary and criminal possession of a weapon.

Debono is scheduled to be arraigned at First District Court in Central Islip on Tuesday.