SOUTH PORTLAND, Maine — A man suspected of robbing a South Portland bank at gunpoint Monday afternoon is in custody, according to police.

Joseph Morrill, 23, who fled TD Bank on Market Street with a small amount of cash, was arrested at 10:50 p.m. Monday, South Portland police Sgt. Steve Webster said Tuesday.

Morrill had walked into the TD Bank branch just before 5:30 p.m. Monday, approached a teller and demanded cash, Webster said. He subsequently fled the scene.

Morrill wasn’t on the run for long, thanks to a collaborative effort between South Portland police and the FBI, Webster said.

Story continues below advertisement.

Morrill is facing a Class A felony charge of robbery and is being held at the Cumberland County Jail on $150,000 bail, Webster said.

Morrill is due in court on Wednesday.

According to authorities, the South Portland robbery is not connected to the rash of robberies in Massachusetts allegedly committed by the man known as the Merrimack Valley Bandit.

Capt. Chris McCarthy of the Methuen (Mass.) Police Department said Tuesday night that Rafael Beamud, approximately 32, of both Salem, N.H., and Lowell, Mass., was arrested earlier in the day by an FBI task force in connection with 14 robberies in which an estimated $40,000 to $50,000 in cash was taken.