Sam might have attacked as a dog because that's the easiest form for him to mimic. Remember he said being around the animal helps him to assume the form. I imagine he doesn't have much experience becoming a bear.