Yorkshire Ambulance Service NHS Trust said it has launched an investigation.