When police gathered around Terrence Andrews Thursday night on the fourth floor of his Shadyside apartment building, the 38-year-old said he had warned his doctor that his medication wasn't working.

"I told people I was going to kill someone," Mr. Andrews confided.

And, police said, that's exactly what he did, stabbing 18-year-old Lisa Maas of Erie to death inside her Hampshire Hall apartment with a pair of scissors.

Ms. Maas was a student at the Pennsylvania Culinary Institute and worked at the Wyndham Pittsburgh University Place hotel in Oakland.

According to a criminal complaint, Mr. Andrews told police he'd "been thinking about killing someone for some time." He told police that when Ms. Maas insulted him earlier Thursday about his body odor, he decided then to kill her. They both lived on the building's fourth floor.

In the criminal complaint, police gave this version of events:

Mr. Andrews spoke to Ms. Maas Thursday afternoon and she told him "he stunk." Upset by her comment and the way, he said, "she always looked down at me and treated me like dirt ... I decided that I was going to kill her."

He told police that he waited for Ms. Maas to return to her one-bedroom apartment at 4730 Centre Ave. about 8:45 p.m. When she did, he took a pair of scissors from his desk, walked to her apartment and when she answered his knock forced his way inside, stabbing her.

Police said Ms. Maas defended herself with a steak knife. Mr. Andrews told police that while he stabbed her she screamed and said she'd give him money.

"Andrews stated ... that he was not after any money; he just wanted to kill her," the complaint read.

He sat on Ms. Maas' couch while she choked on her blood.

When police arrived, they saw a blood-splattered Mr. Andrews leaving Ms. Maas' apartment. They said he told them: "Take me to jail, I did it."

He then told them "I told you this would happen. I told Dr. Barbo to put me in [Western Psychiatric Institute and Clinic]. I told them the medication wasn't working. I told people I was going to kill someone."

Pittsburgh police did not know yesterday whether Mr. Andrews was seeing a physician. There is no physician with the last name Barbo listed with Western Psych or UPMC. Police said there were prescription medications in Mr. Andrews' studio apartment but could not say what type.

He was treated for his wounds at UPMC Presbyterian before he was arraigned on a charge of homicide and taken to the Allegheny County Jail. His preliminary hearing is set for Friday.

According to court records, Mr. Andrews' only previous brush with the law was in 1992, when he pleaded guilty to several charges, including recklessly endangering another person.

On her myspace.com blog, Ms. Maas described herself as an agnostic Gemini studying hotel/restaurant management. In her most recent blog entry, dated May 11, she wrote about what she referred to as her "misunderstood" reputation for being a gold digger.

"I do love money," she wrote. "I would never date a guy that didn't have money. But I don't fall in love for money.

"I don't want a spineless rich guy who dishes out cash and credit cards for my satisfaction ... but if I'm going to get into something serious, ya money helps."

In December she wrote that she hated liars and thieves, loved sponge candy and turtles and that "cookie dough always makes sense."

She concluded the blog with this: "It takes a lot for me to not like you, I'm pretty open ..."