But really my first response was - she's smarter than her teachers and knows it and is working them...
oh, this rings a bell... our kid never acted out in class - she "worked" her teachers in another way (blending in) - but we definitely saw this kind of aggressiveness at home. it took a while to figure out where it was coming from, but it turned out she was exhausted by trying to maintain her mood all day long in an environment that was so toxic for her, and she just
let it rip once she got home. she absolutely saw her teachers as stupid/not trustworthy and she was completely able to articulate that - once i learned to ask questions that were open-ended enough!
so i guess what i'm saying is good for you for looking into it - a prolonged behavioural change really does warrant an investigation... it may just be a simple transition issue, or a specific peer issue, or maybe something to do with your DD having a longer attention-span than her age-peers - or something deeper.
i wonder - what does your daughter say about the class/what's happening?