Updated

The 14-year-old Texas boy who caused an uproar when he brought a clock to school that police said looked like a bomb attended a White House event Monday night where he briefly interacted with President Obama.

Ahmed Mohamed was one of some 300 guests attending the White House's Astronomy Night. As the president moved through the throngs of attendees after making brief remarks, Mohamed was one of the many who greeted him.

He appeared to approach Obama and exchange pleasantries as other visitors snapped pictures on their phones, although the pair was mostly obscured from view by the crowd.

The White House first reached out to Mohamed after he gained national attention when he was pulled from class and handcuffed after showing the digital clock to teachers at his Dallas high school.

Obama responded by Tweeting him an invitation to Astronomy Night at the White House.

Mohamed also stirred controversy just days ago when he was pictured with Sudanese president and alleged war criminal Omar al-Bashir.

Al-Bashir is wanted by the International Criminal Court on charges of genocide and war crimes for atrocities linked to the Darfur fighting.

In his Astronomy Night remarks, Obama said he spoke earlier Monday with the astronauts aboard the International Space Station.

“This is some of the most fun I have on this job,” Obama said.

Fox News’ Lesa Jansen and the Associated Press contributed to this report.