The homeowner was trying to keep the suspect trapped in a shed when his firearm accidentally discharged.