Two dogs were rescued from a car that caught fire Wednesday evening at the Hannaford supermarket in Waterboro.

Capt. Dan Bean of the York County Sheriff’s Office was made aware of the fire by a passer-by, while the owner of the car was in the store. Bean kept the fire under control until the Waterboro Fire Department arrived.

Bean and another person, Michelle Baker of Waterboro, removed the dogs, named Dyna and Bruno, from the car. The dogs were not injured.

The dogs’ owner, Patrick Mazzillo, 48, of Waterboro did not know why his car caught on fire. The fire caused about $1,000 damage to the vehicle.