Follow CBSMIAMI.COM: Facebook | Twitter

MIAMI (CBSMiami) – Elton Bandoo, the man accused of shooting a North Miami Beach police officer, appeared in court Wednesday hoping a judge will allow him to post a bond.

READ MORE: ‘I Have Goose Bumps’: Zoo Miami's Ron Magil On 'Rita' Laying 2nd Egg On Live Bald Eagle Cam

During the hearing, North Miami Beach lead detective Joseph Romero testified that as officers tried to serve a federal warrant, Bandoo came out of his house and fired his gun three times.

Two of those bullets struck Officer Lino Diaz. Bandoo has been in jail since the February 6th incident which occurred in the area of Northeast 160th Street and 8th Avenue.

READ MORE: Boca Raton Man Faces Charges In Fatal Crash That Killed Homestead Mom, Daughter On Thanksgiving Eve

Prosecutors pulled out a tape measure to show Bandoo was standing 29-feet away from the officer when he fired the shots.

Bandoo’s attorney said he believed his family was being robbed when he shot the officer.

MORE NEWS: Kyle Lowry Scores 19 Points, Heat Beat Bulls 107-104

The hearing is expected to conclude Thursday.