Screenwriter and director who transitioned from acclaimed films like Sicario to creating poorly-received television.