A Gray man was arrested Wednesday after allegedly threatening to bring a gun with him to a day care in Gorham.

Nearby residents were asked to shelter in place and Gray-New Gloucester schools were placed under lockdown as police negotiated with the suspect for about two hours Wednesday morning, according to the Cumberland County Sheriff’s Office.

Officials identified the man as 29-year-old Landen Rankin, of Gray. He faces charges of domestic violence terrorizing, terrorizing, violating conditions of his release and creating a police standoff, according to Gorham Deputy Police Chief Michael Nault.

It was not clear why Rankin wanted to go to the day care, Nault said, but it stemmed from an issue between him and his wife.

Gorham police was searching for him after receiving a tip about the threat and notified the sheriff’s office, who dispatched to his home at 127 Shaker Road Lot 5 in Gray around 9 a.m. Wednesday.

Authorities said they learned Rankin could be leaving and found him with his vehicle running in his driveway when they arrived. Nault said he was presumed to be headed to the day care.

Rankin retreated back inside and refused to come out, resulting in a standoff with police, the emergency services unit, the crisis negotiations unit and the drone team, according to the sheriff’s office.

Rankin left his home around 11:15 a.m., when he was taken into custody and brought to the Cumberland County Jail.

Comments are not available on this story.