No, Shadow has not killed Sonic in the official games.
The two are rivals with a complex relationship, but their conflicts never end with Shadow killing Sonic. (In a more tongue-in-cheek sense, some fans joke that Sonic has been "done in" by Sega's questionable decisions and an abundance of furry fan content—but that's all in good fun.)
Canonically, Sonic lives to run another day.