Armed man shot by Detroit officer inside home