A Turkish official said Tuesday the man was deemed mentally disturbed and released shortly after he was taken into custody .