Five Russian servicemen have been killed and two wounded in the republic of Dagestan, in a clash with militants holed up in a cave.