A man, who fired a gun outside an apartment building in Newmarket shortly after midnight, is in serious condition following a police shooting, and the province’s police watchdog is now investigating.