Staff at two leading Bangladeshi newspapers say they were left gasping for air as protesters, roused by the death of a prominent activist, set their offices alight.

Sharif Osman Hadi, who had emerged as a key figure after last year's anti-government protests that ousted former Prime Minister Sheikh Hasina, was shot in Dhaka last week and died of his injuries on Thursday.

Hundreds of protesters stormed the offices of the English-language Daily Star newspaper and Bengali daily Prothom Alo on Thursday night. The demonstrations extended into the following day.

It is one of the darkest days for independent journalism in Bangladesh, the Daily Star said in a statement.

For the first time in 35 years, the Daily Star could not publish its print edition on Friday and will be inoperable for a while, consulting editor Kamal Ahmed told the BBC.

Ahmed described the situation: Twenty-eight of our colleagues were trapped in the rooftop of the building for hours... They were gasping for fresh air. They were rescued only after additional military reinforcement came.

No one has been seriously injured, but large parts of the buildings were completely charred when BBC Bangla visited on Friday. Smoke was still seen coming out of Prothom Alo's building.

It is unclear why the hundreds of protesters targeted the Daily Star and Prothom Alo, which have long been regarded as secular and progressive. As a result, they regularly came under fire during Hasina's administration.

However, since the July 2024 uprising, the two newspapers have maintained their critical stance on some of the policies of the interim government, led by Nobel laureate Muhammad Yunus, which may have angered its supporters.

The interim government condemned the violence, vowing to hand perpetrators full justice. Attacks on journalists are attacks on truth itself, it stated.

The country is making an historic democratic transition, it added, which must not be derailed by those few who thrive on chaos and reject peace.

Other prominent buildings, including the home of the country's first president Sheikh Mujibur Rahman, who was Hasina's father, were also vandalised and set on fire on Thursday.

Bangladesh is scheduled to hold elections next February, the first since Hasina's ousting.

Hadi, 32, was a senior leader of the student protest group Inqilab Mancha, and part of the youth movement that toppled Hasina. He was also a vocal critic of neighbouring India, where Hasina remains in self-imposed exile.

Hadi had planned to contest in next February's election as an independent candidate but was shot one day after authorities announced the date for the poll.

Following Hadi's death, Yunus called it an irreparable loss for the nation and condemned it as a deliberate attack to undermine the upcoming elections.

The interim government has declared a day of national mourning on Saturday as investigations continue, and several people have been detained over the shooting.

Hasina fled to India in August 2024, following weeks of student-led protests, bringing an end to 15 years of increasingly authoritarian rule.

In November, she was sentenced to death for crimes against humanity after permitting lethal force to be used against protesters, resulting in numerous deaths during the unrest.