Both are fine in both sentences, Jandi. 'In' is more to the point, as that is where injuries and casualties often occur. ' The shooting occurred in the course of another activity.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.