PORTSMOUTH, N.H. (CBS) – A homeowner has been charged with shooting at a teenager who went to the wrong address while on his way to a party.

The homeowner, Mark Gray, thought the teen was an intruder — but is now charged in the incident, police said.

READ MORE: Watch Live @ 8:30 am: Baker Visits Newburyport School's Pool COVID-19 Testing Program

Gray, 44, was charged with two counts of reckless conduct, Class B felony, and one count of criminal threatening, Class B felony.

Mark Gray. (Photo credit: Portsmouth, N.H. Police Department)

Gray was released on $10,000 bail. He is scheduled to be arraigned on Sept. 4.

Porstmouth police officers responded to a Summer Street home at 3:30 a.m. on Aug. 18 for a report of shots fired.

An investigation found that a female juvenile who lives at the home had been communicating with a male juvenile on a social networking site, and invited him to a gathering, police said in a statement.

READ MORE: 582 At Massachusetts Schools Test Positive For COVID-19 In Last 2 Weeks

The female told the boy that the door to the home was unlocked.

Police said a homeowner shot a teenager believed to be an intruder after the teen went to the wrong address for a party. (WBZ-TV)

But due to miscommunication, the male juvenile did not know that the gathering was at another house and not on Summer Street.

He went to the Summer Street home, found the door unlocked and entered, which ultimately awakened the residents.

The male juvenile ran away from the home and entered his vehicle which was parked on Summer Street.

MORE NEWS: Friday Marks First Anniversary Of Boston Biogen Conference Super Spreader Event

The residents “exited the home and encountered the male, where shots were fired upon the vehicle at the scene and as it fled from the area,” police said.