Store clerk shot and killed in attempted robbery