A man was shouting as he opened fire with his gun outside, giving out a burst of gunfire.