An Iranian man accused of murdering another immigration detainee at the Yongah Hill detention centre, north of Perth, has the charge dropped because of the death of a key witness.