Suspect armed with knife shot and killed by officer