Turkish president condemns synagogue attack in US