An Indonesian migrant worker was shot dead and four others wounded after Malaysian authorities opened fire on their boat for alleged trespassing.