1.) He was promoted to Liieutenat Junior Grade (LTJG), not Lieutenant (LT) in his final appearance.
2.) "As Malissa explained, Nog was a Starfleet Captain in the alternate future seen in Star Trek: Deep Space Nine's season 4 classic, "The Visitor." In the documentary What We Left Behind, DS9's core writing team, led by showrunner Ira Steven Behr, made Nog Captain of the USS Defiant in the first episode of their apocryphal Star Trek: Deep Space Nine season 8." Alternate and apocryphal are NOT CANON.