A small plane lost power after takeoff and crashed into a flight-training building while trying to return to a Kansas airport Thursday, killing four people, injuring five others and igniting a fire that sent up towering plumes of black smoke that could be seen for miles around Wichita, officials and witnesses said.