Turkey to judge all terror perpetrators fairly, PM says