Turkish president vows to 'wipe out' terrorists