Two religious extremists used knives then set off explosives, police say