Officers shoot man they thought was armed