A fugitive who surrendered to police Friday after months on the run appeared in court Saturday in the northeastern city of Buffalo, New York.

During the short hearing, the judge agreed to turn the suspect, Ralph "Bucky" Phillips, over to state courts to face a charge of attempted murder of a state trooper. He also is accused of killing another officer.

Phillips surrendered Friday in northwestern Pennsylvania, near that state's border with the state of New York.

Phillips escaped from jail in Buffalo in early April. Police say he shot a New York state trooper in June. That officer survived.

But on August 31, authorities say Phillips ambushed two other officers who had staked out the home of one of Phillips' former girlfriends. Phillips allegedly shot and seriously wounded both officers. One of them later died.

Police say Phillips was surrounded by officers from several law enforcement agencies Friday, but hid in a wooded area until he was spotted by a deputy sheriff. Phillips then walked with his hands up from his hiding spot and surrendered.