A woman and man were injured and two others, including a 12-year-old boy, were unharmed in a home-invasion armed robbery that lasted about three hours Thursday night at a house on a dead-end block in Bay Shore, police said.

Suffolk County police said the home appears to have been targeted by the two male suspects, one of whom also fired a shot inside the home. No one was struck by the gunfire.

Police said the robbery occurred about 9:30 p.m. on Woodbine Avenue, a short dead-end streetsouth of the Southern State Parkway. During the robbery, police said, the suspects restrained the female homeowner, 35, her son, her boyfriend, 35, and their female friend, 20, with plastic ties while they ransacked the house.

The robbery began when the two women returned home and were followed into the house by the suspects, at least one of whom had a handgun, police said.

The homeowner was struck in the face during the robbery and she was later taken via Bay Shore-Brightwaters Ambulance to Southside Hospital in Bay Shore to be treated for facial injuries, police said. The boyfriend also was taken to Southside for treatment of minor facial injuries, police said.

Police said the suspects stole cash from the homeowner’s purse and later fled in her 2013 Honda, which was recovered about 5:20 a.m. on nearby Third Avenue.

advertisement | advertise on newsday

It was not clear if anything else was taken.

Investigators are asking anyone with information to call Third Squad detectives at 631-854-8352 or Crime Stoppers at 800-220-8477. All calls will remain confidential.