Sri Lankan military officials say at least 18 Tamil rebels and two government soldiers have died in separate clashes .