MASHPEE — The Mashpee Police Department called in heavily armed backup today to help apprehend a resident accused of sexually assaulting and battering a woman in his home.

Terry Lee, 47, was arrested at about noon near his Huron Way home, Capt. Scott Carline said. The local force was aided by the Barnstable Street Crime Unit and the Upper Cape Regional Special Response Team in apprehending Lee, who now faces six criminal charges.

In a news release, Carline said a woman came to the department at about 10 a.m. today to report that she had been raped and struck repeatedly with cord the previous night by Lee, with whom she was acquainted. Detectives later determined that Lee was home but had a toddler in the house and possibly had a gun.

The three agencies waited for Lee to leave the house, Carline said. When he drove away, officers boxed him in using their vehicles and took him into custody on Algonquin Avenue. After getting a search warrant for the house, officers found a loaded gun, Carline said.

The toddler was left in the custody of family members, Carline said. The woman was taken to Falmouth Hospital for treatment of her injuries.

Lee faces felony charges of witness intimidation, rape, assault and battery with a dangerous weapon and being a felon in possession of a firearm. He is also charged with misdemeanor counts of threatening to commit a crime and domestic assault and battery.