An NYPD captain in Brooklyn has been placed on desk duty and is under investigation after what sources described as a scuffle with the commander of a housing police precinct over whose officers would get credit for a gun arrest, the Daily News has learned.