The violence has forced many media companies to close, lay off reporters or stop printing, forcing some outlets to operate solely online.