A man who fired shots at a Miami-area golf course owned by President Donald Trump was shot and wounded early Friday, the Sun-Sentinel reported.

The man, identified as Jonathan Oddi, 42, of Doral, was not a guest at the resort, The Miami Herald reported. The suspect was waving an American flag and "yelling and spewing some information" about Trump at Trump National Doral, the golf and spa resort owned by the president.

Trump was at the White House when the shooting occurred, the Herald reported.

"Subject is in custody. No known victims at this point," the Doral Police Department tweeted.

The incident occurred about 1:30 a.m., Miami-Dade Police Director Juan Perez said at a news conference.

“The U.S. Secret Service is aware of a shooting that took place early this morning at the Trump National Doral Golf Club in Doral, Florida. Special agents from the Miami Field Office are on the scene and working closely with our law enforcement partners," the Secret Service said in a statement. "No Secret Service protectees or security operations were impacted as a result of the shooting. As a matter of policy the Secret Service does not comment on Protective Intelligence investigations.”

The president's son, Eric Trump, praised the Doral and Miami-Dade police departments in a tweet.

Doral police responded after receiving 911 calls, and Perez said a fire alarm was also pulled.

“This was a definite attempt to lure officers into the lobby of that hotel,” Perez said.

Perez added that the officers, “Did not hesitate for one second to engage this individual who was actively shooting in the lobby of the hotel.”

“He had an American flag that he did drape over the counter — that all will be part of the investigation, we’re going to take it from there and see what his real motives are,” Perez said.

The alleged shooter was taken to Kendall Regional Medical Center with multiple gunshot wounds to his lower extremities, WPLG reported. A Doral police officer suffered a possible broken wrist and was taken to Baptist Hospital, according to WPLG.

The Trump National Doral Golf Club is the former host of a PGA Tour event, and until last year was the venue of the World Golf Championship tournament for more than four decades, CNN reported.