Two people were airlifted to hospital but no-one's life appeared to be in danger, officials said.