Collapse of a radiating viscous fluid