MIAMI (CBSMiami) – Three Miami-Dade police officers were injured when they responded to a call of shots fired and were ambushed by a gunman.

Just after 9:30 p.m. officers responded to the call and when they arrived at SW 80th Avenue and SW 89th Terrace they found shell casings in a home’s backyard.

“At first we heard some gunshots around 8:30 p.m. and we weren’t exactly sure that is what the noise was, cause I’ve never heard them before,” said one neighbor.

When the officers knocked on the front door, there was no answer and the noticed lights were being turned off. They then made their way to the rear of the home, entered through a door, and were confronted by a gunman, later identified as 32-year-old Aramis Khosravi.

Aramis Khosravi (Source: Miami-Dade Corrections)

Khosravi reportedly fired on the officers who fired back as they ran outside and took up perimeter points around the house.

“We had to leave the house because it wasn’t secure for us. So we went to another neighbor’s house, the police escorted us over there,” said the neighbor.

Khosravi then walked to the front of the house and fired multiple rounds through the windows and front door at the 10 officers outside, according to his arrest report.  The officers fired back.

“They had to respond with gunfire, some of them suffered some minor injuries. We are grateful that they had received the appropriate training, where they had the ability to seek the appropriated cover and concealment and were in a tactical position where there was no direct line of fire with this perpetrator who assaulted them with what I believe to be, right now, an assault rifle,” said Miami-Dade Police Director Juan Perez.

Three officers received minor injuries due to the debris, one of the officers sustained an ankle injury due to shrapnel.

Khosravi then called 911 and admitted that he had shot at the officers, saying he did so because they shot at him. He was then connected to a supervisor on the scene who persuaded him to surrender.

“It was a scary moment for our officers, I’m glad they are okay, were glad that no one in the community was harmed,” said Perez. “It is a reminder on this anniversary of what happened on September 11th how dangerous this job can be for those in law enforcement.”

Miami-Dade Mayor Carlos Gimenez mentioned this incident during his speech at a ceremony at Tropical Park during this anniversary of the terrorist attacks on September 11th of 2001.

“This is something that happens far too often,” he said. “We want you to know that you as our public safety officers protect the people of Miami-Dade County and for that we are forever grateful.”

Khosravi, who was not injured, is facing 10 counts of attempted murder of a law enforcement officer.

A check of records shows he has not been arrested before.

His initial bond of $10,000 was raised to $100,000 during his court appearance.

In court, CBS4 learned Khosravi was a veteran and had served in the U.S. Navy.

If he can post the $100,000, he will be on house arrest. The judge also ordered him to surrender any other firearms he might possess.

Jerome LaBello, a neighbor, told CBS4’S Peter D’Oench, “You just don’t know your neighbors. I don’t. I mean they have lived there 15 years. I said hello to him. I believe he is the son of the homeowners. It is a disgrace. Nobody should have to go through. Not police, nobody. This is ridiculous. Police were just doing their job.”

Peter D'Oench