ANKARA, Turkey — An attacker armed with a knife tried to enter the Israeli Embassy in Turkey on Wednesday before being shot and slightly wounded by Turkish security officials, Turkish and Israeli officials said. The Ankara governor’s office identified the man as Osman Nuri Caliskan, a Turkish national born in 1975, and said that a preliminary investigation indicated that he appeared to be mentally unstable and has no known links to any terror group. The man was carrying a 12-inch-long knife and a bag and was captured by police after being shot in the leg. The state-run Anadolu Agency said police guarding the embassy shot him in the leg after he took out a knife wrapped inside a newspaper, started to shout and ignored the security officers’ warnings to stop and drop the knife. Israeli Foreign Ministry Spokesman Emmanuel Nahshon said that all embassy staff were safe. “The attacker was wounded before he reached the embassy,” Nashon said in a statement in Jerusalem, adding that the incident took place in the “outer perimeter” of the embassy. The incident comes just months after Turkey and Israel reached an agreement to end a six-year rift, paving the way for the normalization of ties and the mutual re-appointment of ambassadors.