Six people, including a child, died after a car ploughed into a crowd near a railway crossing in north-west Poland.