The standoff at an FBI field office near San Diego is over with a man in custody. 

The incident ended about five hours after it began with flash bang grenades exploding and SWAT officers going on to the roof.

Officials say the man climbed over the security gate of the field office this morning in Sorrento Valley and tried unsuccessfully to get into the main FBI building.

He later sat on a ledge and called a number of media outlets saying he wanted to talk to the FBI. It's not known if he was armed.