NAIROBI, Kenya — After a nearly week-old media blackout, the Kenyan government returned some television stations to the air late Monday, five days after a court order demanding their restoration “with immediate effect.”

NTV, which is owned by the Nation Media Group, was restored to cable and satellite broadcasting just after 5 p.m., though viewer access to the station via public television remained blocked. KTN was fully restored.

Government officials dismantled the transmission equipment of four stations last week as they broadcast an opposition event at which Raila Odinga, who lost an election to President Uhuru Kenyatta last October, declared himself “the people’s president.”

The government’s move to intimidate and censor the news media for reporting on dissent has alarmed rights lawyers and activists, who called it a stunning reversal in a country that had been praised as a shining example of democracy.