No humans -- or dogs -- were hurt in this incident.
A police officer on patrol heard three gunshots during the wee hours of Sunday morning, the station reported. When the officer went to investigate the scene, he saw what was identified as a gray Honda Accord speeding away.
When the vehicle came to a stop, one of the passengers jumped out anxiously and seemed to bury something in a mound of snow on the road's shoulder.
NBC News reported that Jeffrey Hart, a Lawrence police officer on patrol, pulled over the vehicle and found a 9-millimeter shell casing inside. Soon after, officers from the Essex County Sheriff's Office were called to the scene.
Ivan, a 3-year-old police dog with the Essex County Sheriff's Department, was then instructed to locate what was buried in the snow.
According to police, Ivan dug frantically through the snow, accidentally coming into contact with a gun's trigger and firing the weapon, unknowingly, into a nearby residence.
"I've been policing for 43 years and I've never seen or heard anything like this," Lawrence police Chief John Romero told NBC News. "It's amazing."
Three men were arrested for the incident, and police later determined that the gun had been stolen in Manchester, New Hampshire, in October.