Firefighters have urged people to call 999 for help after two people were left in an icy lake after a dog rescue attempt.