An argument over whether a woman was wiretapping an upstairs apartment neighbor in West Philadelphia erupted in gunfire Sunday morning, leaving the woman critically wounded and a man dead.

Police said the woman, 46, who lived on the second floor, was confronted in a first-floor hallway by a man in his 40s who shot at her 10 times, striking her with eight bullets.

Lt. John Walker of Southwest Detectives said the woman was in critical condition Sunday night at Penn Presbyterian Medical Center.

The shooting happened in an apartment building on the 4500 block of Spruce Street shortly before 11 a.m.

Walker said the man then returned to his third-floor apartment and shot himself in the head.

He was pronounced dead at Presbyterian shortly after noon.

"It's a terrible situation," Walker said. The man and woman had lived in the building in separate apartments for about two years and there was a history of tension between them, he said.

"Instead of handling it like an adult, he takes it into his own hands." Walker said.

Inquirer staff writer Mike Newall contributed to this article