A Moroccan state television channel has apologized after airing a segment instructing domestic violence victims how to cover up bruises with makeup.