A man who opened fire inside a Wendy’s in southeast Houston was arrested Monday night.

According to the Houston Police Department, officers responded at 7:30 p.m. to a call of a suspicious male with a weapon inside the restaurant located at Almeda Genoa and the Gulf Freeway.

When HPD arrived at the scene, they went inside and attempted to make contact with the suspect. However, the suspect put a gun to his neck, so officers retreated, police said.

Police said the man took money from the cash register and barricaded himself in the office where he fired several times.

No one inside the Wendy’s was hurt. The suspect later ran and hid in an abandoned building next door.

Police said two officers were injured when one of their guns accidentally hit the ground and went off, but they are both expected to be OK.

The suspect was taken in to custody after he exited the building and put the gun to his head and pulled the trigger. However, the suspect was out of bullets, so a K-9 unit was released and caught him.

He faces charges of assault with a deadly weapon and other possible charges.