The car that dropped the man off was blue. The bag he was toting was green. An alert neighbor called the sheriff’s office, and according to its account, it caught a burglar red-handed.

The incident occurred Friday in the La Plata area of Charles County. A neighbor saw a man walking around a house in the 6400 block of Warren C. Eller Drive. The house was being foreclosed on, the sheriff’s office said, and the neighbor became suspicious.

After being dropped off about 4:30 p.m., the man with the bag went behind the house, and then entered, according to the sheriff’s office.

When officers arrived, they said, they found the front door locked but saw someone inside.

After the man was taken into custody, the sheriff’s office said, they found that the floor had been damaged by water. They said they found the bag, which was filled with copper pipes that had apparently just been cut.

Copper is a target for thieves, and officials said the intruder was charged with theft and burglary.