A standoff is over with a man who had barricaded himself in an apartment in Riviera Beach and caused a nearby school, daycare and senior center to be placed on lockdown as a precaution.

The man was believed to be armed when the standoff began at 2820 R. J. Henley Avenue.

The situation started around 10:30 a.m. after a mother said her son threatened her with a gun.

She left and called police.

Attempts to contact the man by phone were not successful so police obtained a search warrant. When a special response team entered the apartment he wasn't there.

A short time later a West Palm Beach police hostage negotiating team, which was assisting Riviera Beach police, was able to contact the man by phone.

Riviera Beach police said it "utilized technology" to locate the suspect who was taken into custody without incident around 2:00 p.m. at the corner of Avenue S and West 20th Street.

“We have a domestic situation again, involving a firearm, and we were fortunate mother was able to get out and alert us and we were equally as fortunate we were able to make an arrest and everyone is safe at this point," said Riviera Beach Police Chief Clarence D. Williams, III.

Police identified the suspect as Lamar Brooks and plan to charge him with aggravated assault and false imprisonment.

R. J. Hendley Christian Community School and the Lindsey Davis Senior Center were among the buildings placed on lockdown while police worked to resolve the situation.