Police say a father who kidnapped his two children from a foster home was captured late Monday night in Windsor, Conn.

“Jon Lockwood is in custody in Connecticut and the children are safe,” Braintree police Chief Russell Jenkins said in an email.

The arrest came nearly seven hours after Lockwood allegedly forced his way into the foster home. Windsor is a little more than 100 miles from Braintree.

An Amber Alert had been issued a short time before Lockwood was taken into custody.

Jon T. Lockwood, 54, had a last-known address of a Foxboro hotel.

Jenkins said Lockwood had a supervised visit with the two children at a Department of Children and Families facility in Weymouth earlier in the day. Jenkins said he did not know how Lockwood found the foster home.

“There was some concern this might happen,” Jenkins said,

The alleged kidnapping took place at about 4:30 p.m. Jenkins said Lockwood forcibly removed his 8-year-old son from the foster home and ordered his 10-year-old daughter into the car before driving off with both children.

“The foster mother tried fighting off Lockwood, engaging in a tug-of-war for the custody of (the boy), but was unsuccessful,” Jenkins said.

“She tried to get the children to hide from him,” Jenkins said.

He did not know if the foster mother was injured in the struggle.

Several neighbors heard the commotion and went outside to investigate, Jenkins said.

“One neighbor tried unsuccessfully to chase Lockwood down the street,” the chief said.

The two children attend Braintree Public Schools, he said.

Lockwood had been living in Utah and had a Nevada driver’s license, Jenkins said. It isn’t known if he has any family in the state.

The mother of the children is believed to be out of the country, the chief said.

An alert sent to police agencies said that Lockwood may have been attempting to take the children out of the country.

Lockwood had checked out of his Foxboro hotel, Jenkins said.

Braintree police worked with State Police, the FBI and the National Center for Missing and Exploited Children on the case, the chief said.