GEORGETOWN, S.C. (AP) _ A teen-ager who apparently hid in a bus's bathroom tried to hijack the Greyhound at knifepoint, but was captured by a general store owner when the bus made an unscheduled stop, police say.

Two of the bus passengers were robbed before the youth was caught Tuesday, officials said.

Tavio F. Drayton, 17, of Georgetown, was charged with two counts of armed robbery and one count of attempting to rob, said Georgetown County Sheriff Michael R. Carter.

According to the sheriff, the Greyhound bus was heading north to Conway on U.S. 701 when a boy came out of the bathroom carrying a kitchen knife and told the bus driver, ''This is a hijacking.''

The sheriff said the youth apparently had been hiding in the bathroom since the bus loaded passengers in Georgetown.

One passenger was robbed of $60 and another of $30. The would-be hijacker allegedly was attempting to rob a third passenger when the bus driver made an unscheduled stop at the John N. Carter and Sons General Store six miles north of Georgetown.

''The bus driver ran off the bus and into the store, hollering out what happened, with the assailant following behind him,'' said John N. Carter Jr., who runs the store with his father.

Carter said he ran around the building once before realizing the assailant would hide in the woods, so he headed into the thick underbrush by the store.

''There he was, squatted down there,'' Carter said.''The knife had been discarded, but not the cash taken from the passengers. Thank goodness they got their money back.

''It was a little scary, but you do what you've got to do,'' Carter said.

The teen-ager was being held Tuesday at Georgetown County Jail under $40,000 bond, the sheriff said.