Contractor sues Brooklyn developer for $3.4M