Luis Ortiz, the man who allegedly shot NYPD Officer Kevin Brennan in Brooklyn on Tuesday night, pleaded not guilty to charges of attempted murder.

Dozens of police officers were in attendance for Luis Baby Ortiz's bail hearing at Brooklyn Criminal Court. Prosecutors in the case said that Ortiz acted heinously when he allegedly pulled the trigger, striking Officer Kevin Brennan in the head.  The judge presiding over the proceeding denied Ortiz bail, reported the New York Times. Brennan is expected to make a full recovery.  

This was an assassination attempt by this defendant against Police Officer [Kevin] Brennan, prosecutor Lewis Lieberman told Criminal Court Judge Charles Troia, according to the New York Post.

Luis Baby Ortiz, 21, reportedly stayed silent during the hearing, contrasting the way he acted during his perp walk on Wednesday. He shouted at photographers Take a picture of me! and blew kisses to his family, reported the Post.

Ortiz's sister lashed out at police. She reportedly screamed F*** the police! and began slamming a patrol car as they took her brother away.

At the proceeding, prosecutors laid out their evidence, including a surveillance video they obtained from the scene of the shooting. However, Ortiz's attorney, Eric Poulos, said that the evidence does not prove his client actually shot Officer Brennan.

I think there is an effort here by the prosecution to sandbag this case, said Poulos, according to the Wall Street Journal. The video tape shows wrestling--it doesn't show who did the shooting. The gun was found outside in the projects.

Officials said the shooting occurred on 370 Bushwick Ave, near Moore Street, just after 9 p.m. Officer Brennan, a decorated police officer from Long Island, and his partners, Officers Michael Burbridge and Christopher Mastoros, responded to a call of shots fired, reported

Description:Description:When the trio arrived, they saw three men running out of a building. One of them was Luis Baby Ortiz, 21. Authorities said that Ortiz may have been previously arrested by one of the officers. Officer Brennan chased after Ortiz back into the building, with his partners behind him. However, the door reportedly jammed and Officers Burbridge and Mastoros were unable to accompany Brennan into the Bushwick Houses.

Ortiz fired a single shot at the lone officer, striking him in the head. Brennan returned fire, but missed. Officials believe that Ortiz fired first.

It's a miracle, said Police Commissioner Raymond Kelly, reported He's very, very lucky. Very lucky.

The NYPD's Emergency Service Unit was called in to track down Ortiz and his co-conspirators. They knocked on doors and pounded the pavement well into the night. Hundreds of officers, police dogs and helicopters scoured the neighborhood looking for the suspect.

Ortiz was found sitting on a bed in his uncle's apartment. Police recovered the weapon, a revolver with a black wooden handle found, reported the Daily News.

He has been arrested over 20 times, mostly for drug-related charges, police said. Neighborhood residents know all too well, the trouble Ortiz has gotten into.

He's a bad dude. Everyone knows him around here , said a 52-year-old Bushwick Houses resident, reported the Daily News.

Mayor Bloomberg said Officer Brennan was blessed for surviving the incident.

He understands he was hit - he said he was in a lot of pain, said Bloomberg. God in this case was kind. It could have turned out an awful lot worse.