An Edgartown man was arrested this week and charged with robbing a Rockland Trust bank in Falmouth at gunpoint.

Petar Petyoshin was arrested at the Island’s Registry of Motor Vehicles office Tuesday in connection with the April 8 robbery, law enforcement officials said.

Mr. Petyoshin, 40, is facing charges of armed and masked robbery with a firearm, bomb threat, larceny over $1,200, carjacking and seven counts of kidnapping, according to the Cape and Island District Attorney’s Office.

Mr. Petyoshin, a water system operator at the Oak Bluffs water district, was booked at the Dukes County House of Corrections and arraigned in Falmouth District Court Tuesday. He pleaded not guilty to all charges and was held without bail pending a detention hearing on May 30.

Following his arrest, police also searched Mr. Petyoshin's home in Edgartown.

Falmouth police previously said a man walked into the bank on Davis Straits and demanded money from a bank teller while brandishing a gun and claiming to have a bomb.

The man allegedly zip-tied bank patrons and employees before leaving in a stolen car with several thousand dollars.

The district attorney's office said investigators were able to identify Mr. Petyoshin as the bank robber through witness descriptions, surveillance footage and records from Stop and Shop and the Steamship Authority.

The district attorney’s office said that Oak Bluffs and Edgartown police aided state police and the FBI’s Boston violent crimes task force in Mr. Petyoshin’s arrest.