Superconductivity in an attractive two-band Hubbard model with second nearest neighbors