Court sentences killer