Pope had a bronchial spasm that resulted in him breathing in vomit, requiring non-invasive ventilation, Vatican says.