A man thwarted an early-morning attempted home invasion in Maplewood by fighting back, wrestling a handgun away from one of the masked robbers and firing a shot at the armed pair as they ran away, authorities said.

Police said the victims were targeted and that there’s no threat to the public as officials hunt for the robbers.

The two gunmen entered the home on Lombardy Place around 3:15 a.m. by climbing into a bathroom window, Maplewood police said.

Dressed in all black, the robbers demanded money by threatening and assaulting a woman and her fiancé. The fiancé fought back in what police described as a “violent struggle” and managed to pry a gun away from one of the assailants. He then shot at the two gunmen as the ran out of the back of the house into yards off Burnett Avenue, police said.

It’s not known if the robbers were struck by gunfire, though police said area hospitals have been notified.

Officers found a vehicle that investigators think the gunmen arrived in parked in a nearby lot.

Union police and the Union County Sheriff’s Office K9 unit assisted in the search for the two men. The connection to Union wasn’t immediately clear as police couldn’t be reached for additional information.

Neighbors Monday said they don’t know the people who live at the house, and were stunned to learn what happened on their quiet street. Residents of nearby home said they were sleeping when the incident occurred and didn’t wake up to any commotion.

Several people who live at the other end of the street were completely unaware crime had occurred. Another neighbor said a family member heard commotion early this morning, but declined further comment. The people at the address where the attempted home invasion took place were not home late Monday morning.

Jenna Wise may be reached at jwise@njadvancemedia.com. Follow her on Twitter @JennaRWise. Find NJ.com on Facebook. Have a tip? Tell us. nj.com/tips.

Jeff Goldman may be reached at jeff_goldman@njadvancemedia.com. Follow him on Twitter @JeffSGoldman.

Have a tip? Tell us. nj.com/tips.

Get the latest updates right in your inbox. Subscribe to NJ.com’s newsletters.