Gunmen dressed in white lab coats stormed a hospital in the Afghan capital and battled security forces for hours, killing more than 30 people and wounding dozens.