A Hindu priest in Muslim-majority Bangladesh has been hacked to death and two devotees injured in an attack on a temple in the country's north.

Police say the 50-year-old priest Jogeshwar Roy was attacked on Sunday as he came out after people threw stones at the temple in Deviganj area of Panchgarh district, on the border with India.

Quoting local people and witnesses, police officer Kafil Uddin said the assailants on a motorbike fired guns at Roy and exploded crude bombs, injuring two devotees.

There has been no immediate claim of responsibility.

Local Islamist radicals and the Islamic State group have in the past claimed responsibility for killing minorities and foreigners. The government denies that the Islamic State has presence in the country.