Superconductivity in Mg-Doped Layered Intermetallic Compound NbB2