Kyle Coetzer scored Scotland's first World Cup century but it wasn't enough to see Scotland through as they lost their fourth game in the tournament.