Three retired police officers and a former Brooklyn prosecutor were charged on Tuesday in a widening federal corruption investigation into the New York Police Department and its gun-licensing division.