You and several other officers are attempting to arrest a subject at his residence. As you walk up to the house, the front door opens and the subject appears. He steps out of the doorway and onto the front porch. He has a gun in his hand and he begins shooting at you.
What would you do?
Under what authority would you be justified?