COEUR D'ALENE, Idaho — A suspect is in custody after barricading himself inside a Coeur d'Alene Ramada Inn.

A SWAT team was attempting to negotiate with the suspect, who was wanted out of Oregon by U.S. Marshals on a federal probation violation warrant. Police later identified the suspect as 32-year-old Ryan Hayes.

Several police vehicles were on scene as Hayes hung out of a top-story window. Coeur d'Alene police said Hayes was taken into custody just after 9:30 a.m.

Police said they received a report that Hayes was armed. When they arrived, they found Hayes locked inside a hotel room.

Officials on the scene said the SWAT team breached the hotel door and used tear gas and a K-9 unit to apprehend Hayes. They did not confirm whether Hayes was carrying a weapon. He appeared to be alone in the room.

Hayes appeared intoxicated but lucid, police said. He was taken into an ambulance for medical evaluation.

Police said he will be arrested once he is medically cleared.

The hotel and neighboring IHop was evacuated during the standoff.

Nearby Borah Elementary School was on a safety hold, according to the Coeur d'Alene School District. It has since been lifted.