Deputies: Resident opens fire on intruders, fatally shoots one