Turkish premier says death penalty can be legitimate in some cases