At least 41 people have been killed in an attack on a school in western Uganda, the country’s media reported today.

Although the latest police count put the death toll at 25, private television network NTV put the death toll at 41 on its Twitter page, while state-run newspaper New Vision put the death toll at 42.

The police, who announced that gunmen with links to the Islamic State were responsible for the attack, had announced that the dead were 25.

The attack targeted a school in western Uganda, near the border with the Democratic Republic of Congo.

Authorities said members of the Allied Democratic Forces (ADF) rebel group that has pledged allegiance to Islamic State kidnapped people but did not say how many.

The gunmen attacked Lubirira Secondary School in the western border town of Bodue late on Friday, setting fire to a dormitory and stealing food, police said.

Police did not say how many of the dead were students at the school.

The attackers fled to Virunga National Park in DR Congo, police added.

The ADF rebelled against President Yoweri Museveni in the 1990s initially from a base in the Rwenzori Mountains.

The organization was defeated by the Ugandan army, but its remnants escaped across the border into the vast jungles of eastern Congo, from where they have since carried out attacks on civilian and military targets in both Congo and Uganda.

In April, the ADF attacked a village in eastern DR Congo, killing at least 20 people.