'Brooklyn Nine-Nine' canceled