Firefighters work to rescue terriers