A 46-year-old homeless man robbed Webster Bank in Taunton over the weekend using a note, police said.

Lawrence Pedro was arrested and charged with armed robbery on Saturday afternoon after Taunton police said he walked into the Webster Bank on Washington Street and passed a threatening note to an employee.

Pedro got away with a bag of money from the bank, but a dye pack that was in the bag exploded on him. He was quickly caught by officers responding to the robbery, police said.

“He walked out the dye pack went off,” said Taunton police Sgt. Richard Carreiro. “We found him in the area. And he matched the description and was subsequently arrested.”

Taunton police said that Pedro approached a woman working behind the counter at the bank, handed her a note stating that he had a gun and warned her not to press an alarm. But the woman hit the alarm anyway, loaded the bag with money with a dye pack and handed it over to Pedro, police said.

“(The note) mentioned that he had a gun and not to hit any alarms because her life wasn’t worth it,” a police report said.

Witnesses saw Pedro running across the street from the bank into the Mill River Plaza and around the building. Police said they found the bag of money with the exploded dye pack in the parking lot there.

Taunton police said they spotted Pedro soon after in the parking lot, smelling of alcohol with a bottle of rum. During his arrest and booking, police said Pedro mostly responded, “I don’t remember.”

No weapon was found on Pedro, the police report said.

Pedro was arraigned in Taunton District Court on Monday, where Judge Paul McCallum set bail at $10,000, citing the serious nature of the allegations, his prior record, his failure to appear in court previously and an ongoing case where he was charged with operating a vehicle under the influence of drugs last October.