Bad photo lineup led to man's wrongful conviction, Brooklyn DA says