A judge Friday denied bail for a 47-year-old man accused of firing a gun into a home, killing a man and wounding a woman he believed had something to do with the robbery of his daughter in the Back of the Yards neighborhood last spring.

Otis Harriel, of the 1400 block of South Canal Street, appeared Friday before Judge Adam Bourgeois Jr. during a bond hearing Friday at the Leighton Criminal Court building.

Harriel was charged with one count of first degree murder and one count of aggravated battery for discharging a firearm, police announced early Friday.

Police said Harriel shot a man and the woman about 1:15 a.m. April 26 in the 5400 block of South Winchester Avenue. The two were standing in the kitchen of a second floor apartment building when Harriel allegedly opened fire with a handgun from outside, police said in a statement.

The man killed, later identified as 23-year-old Martavian Emery, was hit in his chest and was pronounced dead on the scene, officials said. A 20-year-old woman was shot in her leg and was taken to Mount Sinai Hospital. She survived the shooting.

About 7:30 p.m. the day before the killing, Emery was walking to a restaurant with his sister when Harriel’s daughter asked Emery where she could buy weed, Asst. State’s Atty. Sarah Karr said in court.

After Emery directed Harriel's daughter to a house in the 5400 block of South Winchester Avenue, she was attacked and dragged into another nearby nearby home, where she was robbed at gunpoint and pistol-whipped, according to Karr.

The daughter told Harriel what happened and later that night, when Emery and his sister were returning home from the restaurant, they talked with the daughter and learned she was robbed at gunpoint, according to Karr.

At 12:30 a.m. on April 26, Emery and a witness were walking to a liquor store when Harriel confronted them, asked if they had any information about the robbery, and threatened those responsible for robbing his daughter, Karr said.

The witness noticed a gun in Harriel’s hoodie.

A short time later Emery, the witness, and a 20-year-old woman were both inside a home in the 5400 block of South Winchester Avenue when gunshots were fired and came though the window, hitting Emery in the chest and the 20-year-old woman, who was sleeping in a bedroom, in the left leg below the knee, Karr said. Emery was pronounced dead on the scene.

About a month later, Harriel was arrested in possession of a 38 caliber gun and ballistic tests confirmed that the bullets recovered from the victims and the crime scene were fired by the gun that Harriel was arrested with, Karr said.

Harriel was also identified by the witness in a lineup.

Harriel has five felony convictions dating back to 1985 for armed habitual criminal, possession of a controlled substance, burglary, manufacturing/delivery of cocaine, and possession of a stolen motor vehicle, according to Karr.

Harriel has an 18-year-old daughter and is on disability for various mental health issues, according to Harriel's defense attorney.