Two Perlis immigration officers have been sentenced to death for the murder of a Bangladeshi man in October 2014.