ORLANDO, Fla. (WFLA) — Two Orlando police officers are in critical condition after getting shot during a traffic stop, according to Police Chief Eric D. Smith.

The Orlando Police Department said at about 11 p.m. Friday, officers were investigating a vehicle that was believed to be connected to a homicide in Miami.

Smith said during the traffic stop, Daton Viel, 28, fired at the police officers, critically injuring two of them.

He then carjacked someone else, which began a pursuit, officials said. The victim of the carjacking was not injured.

“This is a sad day for our department,” Smith said. “For the suspects out there, we will find you, and you will be brought to justice.”

Initially, police believed there were two suspects involved in the shooting, but it was determined that Viel was the sole suspect.

According to the chief, the pursuit went up to Apopka and other areas, but investigators tracked Viel down at a Holiday Inn & Suites on Caravan Court in Orlando.

After evacuating the hotel, SWAT team members got into a standoff with Viel, who barricaded himself in a room.

“Several attempts to get the suspect to surrender were made, and [he] refused,” Smith said. “At 8:58, the suspect shot at our SWAT officers multiple times. SWAT officers returned fire, striking the suspect. The suspect is now deceased.”

Viel was said to have an extensive, violent criminal record before his death.

The two injured officers were hospitalized at Orlando Regional Medical Center, according to the police chief.

“Our officers are lucky to be alive and we ask that you continue to pray for them,” he said.

According to an official from Orlando Regional, the officers are recovering with their families.

“To those officers and their families, who I had the opportunity to meet with earlier today, I want to thank them for their service and their dedication to our city,” Orlando Mayor Buddy Dyer said.