A man was found fatally shot on the rooftop of a Kips Bay building Wednesday morning, in what police are probing as a possible suicide, authorities said.

The victim, who appeared to be in his 30s, was discovered around 8:45 a.m. on the rooftop of a five-story building on Second Avenue near East 28th Street, cops said. He was pronounced dead at the scene.

The man is believed to have suffered a self-inflicted gunshot wound to the head, and a gun was found near his body, police said.