Narrative:

Engine failure due to fuel selector being inadvertently switched off. Error discovered before engine quit and proper tank (right) selected. Engine then quit and crew spent time dealing with emergency, selecting tanks and turning on boost pumps, and identing the closest airport. After a short period, engine started and ATC called asking if there was a problem. Explained what had happened and we were proceeding back to assigned altitude. ATC advised next time to let them know earlier, but that it was not a problem. WX VFR visibility unlimited.

Google
 

Original NASA ASRS Text

Title: SMA PLT DESCENDED BELOW ASSINGED IFR ALT DUE TO ENG QUITTING CAUSED BY PLT INADVERTENTLY TURNING OFF THE FUEL INSTEAD OF SELECTING ANOTHER TANK.

Narrative: ENG FAILURE DUE TO FUEL SELECTOR BEING INADVERTENTLY SWITCHED OFF. ERROR DISCOVERED BEFORE ENG QUIT AND PROPER TANK (R) SELECTED. ENG THEN QUIT AND CREW SPENT TIME DEALING WITH EMER, SELECTING TANKS AND TURNING ON BOOST PUMPS, AND IDENTING THE CLOSEST ARPT. AFTER A SHORT PERIOD, ENG STARTED AND ATC CALLED ASKING IF THERE WAS A PROB. EXPLAINED WHAT HAD HAPPENED AND WE WERE PROCEEDING BACK TO ASSIGNED ALT. ATC ADVISED NEXT TIME TO LET THEM KNOW EARLIER, BUT THAT IT WAS NOT A PROB. WX VFR VISIBILITY UNLIMITED.

Data retrieved from NASA's ASRS site as of July 2007 and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.