Police say a person was repeatedly hit with a baseball bat as masked intruders tried to force their way into a Binghamton West Side residence.

Photo: Bob Joseph/WNBF News (file)

Authorities say the injured person was taken to Lourdes Hospital for treatment.

Investigators say the incident happened around 2:30 a.m. Saturday at 110 Main Street.

According to police, two people knocked on an apartment door. When the resident opened the door, a gun was displayed. The resident was struck several times with a bat.

The intruders did not manage to get inside. They ran away after police were called.

Police officers arriving at the scene spotted the suspects fleeing and took them into custody.

Two 17-year-old boys were arrested. Diamond Criss of Murray Street and Nathaniel Williams of Susquehanna Street both face felony counts of first-degree burglary and second-degree assault. They also were charged with endangering the welfare of a child.

Detectives say Criss and Williams were being held at Broome County Jail.

Police recovered a metal baseball bat, a BB gun and two ski masks at the scene.

For breaking news and updates on developing stories, follow @BinghamtonNow on Twitter.