A Binghamton man has been arrested for allegedly helping another man who is accused of stabbing two people in an Endicott apartment.

Authorities say 30-year-old Louis Martinez of Saratoga Avenue has been charged with first-degree burglary, a felony.

Investigators say Martinez is accused of being inside a Watson Boulevard apartment and aiding Pedro Garcia-Ayala, who was arrested earlier for stabbing a man and a woman on March 27.

Martinez is being held in Broome County Jail on unrelated charges.

The 35-year-old Garcia-Ayala had been living in Bethlehem, Pennsylvania. He was arrested April 9 in connection with the attack on his estranged wife and her boyfriend.

Police say the man and woman were stabbed repeatedly while they were asleep. They sustained wounds to their heads, backs, arms and legs.

Garcia-Ayala has been charged with first-degree burglary. He's being held in Broome County Jail without bail.