Deal reached with Dearborn over fatal shooting by police