Image copyright AP Image caption The moment the craft exploded was captured in an image shortly after it separated from the carrier aircraft

A pilot was killed and another injured as Virgin Galactic's SpaceShipTwo space tourism craft crashed in the California desert.

The craft was flying a manned test when it experienced what the company described as "a serious anomaly".

It was undergoing its first powered test flight since January over the Mojave Desert, north of Los Angeles.

Virgin Group founder Sir Richard Branson said he was "shocked and saddened" by the "tragic loss".

In a blog post, he said everyone involved in the project was "deeply saddened".

"All our thoughts are with the families of everyone affected by this tragic event," he wrote.

He said that he was flying to California immediately, describing it as "one of the most difficult trips I have ever had to make".

"Space is hard - but worth it. We will persevere and move forward together," he added.

Media playback is unsupported on your device Media caption Dr David Whitehouse, space scientist: "I think this shows that there is no such thing as routine, regular safe access to space"

Both pilots were employed by Scaled Composites, the company that designed the craft. One was pronounced dead at the scene while the other was transported to a local hospital in an unknown condition.

Television images shot from a helicopter showed wreckage bearing the Virgin logo. Officials have said the debris is strewn over a large area.

In a statement, Virgin Galactic said the "vehicle suffered a serious anomaly resulting in the loss of SpaceShipTwo".

The aircraft that the spacecraft was launched from, known as White Knight 2, landed safely, Virgin Galactic said.

It was the second accident this week involving a commercial space company in the US.

On Tuesday, an unmanned supply rocket called Antares exploded shortly after its launch from Virginia. It was carrying cargo to the International Space Station.

Media playback is unsupported on your device Media caption Eyewitness Ken Brown: "It burned for a time and then just exploded"

Ken Brown, a photographer who witnessed the SpaceShipTwo crash, said the craft had exploded after it was released from the plane that carried it to a high altitude.

Officials with the National Transportation Safety Board will begin their work on Saturday morning to investigate the cause of the accident, which will probably take several days.

"We are going to be supporting the investigation as we figure out what happened today," said George Whitesides, chief executive of Virgin Galactic.

"The future rests in many ways on hard days like this but we believe we owe it to the folks who were flying these vehicles as well as the folks working so hard on this to understand this and move forward."

Media playback is unsupported on your device Media caption George Whitesides, Virgin Galactic: "Space is hard, and today was a tough day"

Analysis: David Shukman, BBC science editor

Even as details emerge of what went wrong, this is clearly a massive setback to a company hoping to pioneer a new industry of space tourism. Confidence is everything and this will not encourage the long list of celebrity and millionaire customers waiting for their first flight.

An innovative design for a spacecraft combined with a new type of rocket motor make the development challenge exceptionally hard. Despite an endless series of delays to its spacecraft, Virgin Galactic has over the years managed to maintain some very optimistic public relations and positive media coverage.

I interviewed Sir Richard Branson when he first announced the venture and his enthusiasm and determination were undoubted. But his most recent promises of launching the first passenger trip by the end of this year had already started to look unrealistic some months ago.

Today's accident will delay plans even further. Space is never easy, and making it routine is even harder.

Will crash set back space tourism?

Image copyright AP Image caption SpaceShipTwo under rocket power in 2013

Image copyright Reuters Image caption SpaceShipTwo, carried by a twin-hulled aircraft named Eve

Image copyright Getty Images Image caption Branson unveiled the spacecraft in 2009

Virgin Galactic has been a frontrunner in the nascent space tourism industry, and Sir Richard said earlier in October he expected to see the craft make it to sub-orbital space within a few months.

More than 800 people have already paid or put down deposits for a trip on SpaceShipTwo, at a cost of about $200,000 (£125,000) per person.