Quote Originally Posted by Ramil

Generally you may use both, there is only one nuance: when you use обстрел/обстрелять you have to/you must/etc. specify the target of обстрел (bombardment, shelling, firing).
And стрелять can be used without it. (see examples above).
After saying "when you use," you have to keep the subject in the second person.