MIAMI (CBS4) – A distraught man who held a Miami police SWAT team at bay for several hours Monday morning before he surrendered himself to authorities made his first appearance before a judge.

During the hearing, a judge ordered that 26-year old Jason Leyva be held on $14,000 bond.

READ MORE: Small Plane Makes Emergency Landing In West Kendall; US Coast Guard Searches For Missing Plane Off Boca Raton

According to police, around 2 a.m. Monday morning  an intoxicated Leyva returned to the seventh floor apartment he shared with his girlfriend at the Diamond Towers in the 200 block of NW 12th Avenue and asked her to have sex with him.  When she refused he got violent with her, according to Leyva’s arrest affidavit.  Leyva reportedly hit her several times and choked her.

READ MORE: COVID In Florida: 5,459 Additional Cases, 118 Deaths Reported Saturday

The woman was able to free herself and called 911.  When police arrived Leyva, who was reportedly armed, barricaded himself in the apartment with the couple’s five month old daughter.

A police negotiator spent several hours talking with him, as officers shutdown the roads around the apartment building to traffic and evacuated four apartments adjacent to Leyva’s.

MORE NEWS: Inter Miami CF Unveils 'La Palma' 2021 Secondary Jersey, As Team Gets Ready For 2021 MLS Season

Just before 6 a.m. the Leyva surrendered to police, he was walked out of the building in handcuffs.  He’s been charged with aggravated assault, battery by strangulation and domestic battery.