The death toll from Sunday's attacks in the southern Russian region of Dagestan has risen to 19 people, Russia's investigative committee said on Monday.
In addition, the committee said, five attackers were also killed during the attacks.
In earlier reports, gunmen opened fire at a synagogue, an Orthodox church and a police post in attacks across two cities in Russia's North Caucasus region of Dagestan on Sunday, killing an Orthodox priest and at least 15 police officers, the region's head said.
"This is a day of tragedy day for Dagestan and the whole country," Sergei Melikov, governor of the Dagestan region, said in a video published early on Monday on the Telegram messaging app.
The simultaneous attacks across the cities of Makhachkala and Derbent came three months after 145 people were killed in an attack claimed by the Islamic State on a concert hall near Moscow, Russia's worst terrorist attack in years.
There was no immediate claim of responsibility for the attacks in the volatile North Caucasus region.
"We understand who is behind the organisation of the terrorist attacks and what goal they pursued," Melikov said, without disclosing further details.
Russia's state media cited law enforcement as saying that among the attackers had been two sons of the head of central Dagestan's Sergokala district, who it said had been detained by investigators.
Melikov said that among the dead, in addition to the police officers, were several civilians, including an Orthodox priest who worked in Derbent for more than 40 years.
There was no immediate claim of responsibility for the attacks in the volatile North Caucasus region.
Six of the gunmen were shot and killed as the incidents unfolded, Melikov said. Russian state news agencies cited the National Anti-Terrorist Committee as saying that five of the gunmen had been killed.
Reuters could not independently verify the reports on how many people or gunmen were killed in the attacks.
Days of mourning
June 24-26 have been declared days of mourning in Dagestan, Melikov said, with flags lowered to half-staff and all entertainment events cancelled.
The restive region was in the 2000s hit by an Islamist insurgency spilling over from neighbouring Chechnya, with Russian security forces moving aggressively to combat extremists in the region.
In recent years, attacks had become rarer, with Russia's Federal Security Service (FSB) saying it in 2017 that it had defeated the insurgency in the region.
The agencies reported exchanges of gunfire in the centre of Makhachkala. They cited the interior ministry as saying that exits from the Caspian Sea port of around 600,000 had been closed, and that conspirators who were still at large may yet attempt to flee the city.
This screengrab photo shows an area sealed off by Police following deadly attacks on churches in North Caucasus.
About 125 kilometres (75 miles) south of Makhachkala, gunmen attacked a synagogue and a church in Derbent, home to an ancient Jewish community and a UNESCO World Heritage site. Authorities were quoted as saying that both the synagogue and church were ablaze, and that two attackers had been killed.
Russian media cited the head of the country's federation of Jewish communities as calling for people to avoid reacting to "provocations".
In Israel, the Foreign Ministry said the synagogue in Derbent had been burned to the ground and shots had been fired at a second synagogue in Makhachkala. The statement said it was believed there were no worshippers in the synagogue at the time.
In October, after the war in Gaza broke out, rioters waving Palestinian flags broke down glass doors and rampaged through Makhachkala airport to look for Jewish passengers on a flight arriving from Tel Aviv.
Russian President Vladimir Putin accused the West and Ukraine of stirring up unrest inside Russia in connection with the incident.
Reuters