ROCKAWAY TOWNSHIP -- A bear and two cubs were captured on North Cape Trail Wednesday, three days after a township couple's dogs were attacked by a different bear at the same location, police said.

The dogs were injured in the skirmish with a bear around 11 a.m. on Sunday, but no people were injured, Rockaway Township Police Chief Martin McParland Jr. said.

The homeowner told NJ Advance Media on Thursday morning his wife and their two Huskies were cornered and attacked outside their North Cape Trail home on Sunday when she went to take the dogs for a walk. The homeowner heard the screaming and ran outside and began yelling and waving to get the bear's attention.

"You don't really think when you're doing it," he said. "You can't outrun them, all you can do is yell at them as loud as you can and make yourself look as big as possible.

The bear charged at him, allowing his wife to get behind a parked truck. The bear then went back to his wife but he ran at it again, yelling and stomping his feet to draw it away.

Eventually, the bear, which had a tag in its ear, moved far enough away to allow his wife and the dogs to escape, but doing so meant the bear was only about a foot from the homeowner. Fortunately, he said, it choose not to bite him and ran away instead.

One of the couple's Huskies had to undergo surgery due to two serious bites sustained in the attack.

Bob Considine, a spokesman for the state Department of Environmental Protection, said a mother bear was caught in a trap set by Fish and Wildlife officials Monday to capture a Category 1 bear that came within 10 feet from a woman walking her dogs a day earlier.

Category 1 bears are considered threats to public safety and property while Category 2 bears are nuisances but not a threat to public safety or property. Category 3 bears exhibit normal bear behavior and are not nuisances or threats to public safety.

Considine said the bear involved in the Sunday incident had been filmed walking across the homeowner's property by a neighbor's security camera with four small cubs.

"The bear that was caught, however, was observed today and determined to not be the target animal," Considine said, as it only had two large cubs in tow. "So that bear is being aversively conditioned and released."

The bear's two cubs climbed a tree after their mother was caught, but they, too, were tranquilized and safely captured, McParland said.

Fish and Wildlife officials allowed the woman who was attacked by the bear on Sunday to take photos with the tranquilized bears following their capture.

The homeowner said he believed the bears were attracted to the area due to new neighbors who left their garbage out overnight. Bears aren't uncommon to that part of Rockaway and usually just pass through, but with garbage left outside they view it as a "picnic," he said.

The bear family will be relocated to another area in Morris County and the trap will remain set for seven days as is standard procedure for an incident involving a Category 1 bear, Considine said.

More information and safety tips for dealing with black bears in New Jersey is available on the state DEP's "Bear Facts" website.

Justin Zaremba may be reached at jzaremba@njadvancemedia.com. Follow him on Twitter @JustinZarembaNJ. Find NJ.com on Facebook.