Man arrested after being detained by homeowner