The Israeli army says its soldiers patrolling the border with Egypt have mistakenly shot and wounded an Egyptian security officer .